The "sys_shader_init" Function

Syntax

sys_shader_init(entity, index, shader);
ArgumentTypeDescription
entityintegerThe data structure of the entity to be animated
indexintegerThe index of the row containing the target entity
shadershaderThe shader to be performed

Description

Initializes a given shader for the input entity which can be performed with sys_shader_perform.

As this script is run automatically by any shader scripts tailored to specific entity types, it is almost never necessary to run sys_shader_init manually.

See Shaders for a list of included shaders.