Skip to main content

The "vngen_attach_shader_start" Function


vngen_attach_shader_start(name, id, shader, fade, [ease]);
namestringThe ID of the attachment parent character
idreal/stringThe ID of the attachment to apply shader to (or keyword all for all attachments)
shadershaderThe shader to perform
faderealSets the length of time to fade shader in, in seconds
easeinteger/macroOptional: Sets the ease mode for fade transition


Applies a shader with optional fade in transition. Shaders are written externally and can be used to modify the color and position of vertices and/or pixels.


Some shaders require extra input values to function properly. These values must be set externally with vngen_set_shader_* scripts.

See Shaders for a list of included shaders.


if vngen_event() {
vngen_attach_shader_start("John Doe", "attach", shd_sepia, 0.5);