Skip to main content

The "sys_shader_set_sampler" Function

Syntax#

sys_shader_set_sampler(sampler, source, [index]);
ArgumentTypeDescription
samplerintegerThe index of the shader sampler to assign source to
sourcesprite/stringThe source sprite or surface to assign to sampler (string required for surface)
[index]realThe source image index, if source is a sprite

Description#

Checks whether the source sprite or surface exists, and if so, assigns it as a sampler to the current shader

As this script is run automatically by VNgen draw functions, it is almost never necessary to run sys_anim_term manually.

See Shaders for a list of included shaders.