HC_Set_Shader_Inputs

void HC_Set_Shader_Inputs(Key shader_key, char const *inputs)
void HC_Set_Shader_Inputs(Key shader_key, char const inputs)

Sets the inputs required by the shader at runtime. Only valid for modern custom shaders.

The valid values for the input specification depend on the stage the provided shader is associated with.

Vertex: “texcoord[0-7], normal” Pixel: “texcoord[0-7], eye position, eye normal, object view, object normal”

Note that texcoord options must be specified starting from “texcoord0” and increase consecutively for muliple fields. For example, “texcoord0, texcoord1, texcoord2” is a valid option, but “texcoord0, texcoord2” is not.

Certain options will only provide the requested inputs at runtime if the geometry being drawn supports that option. For example, any texcoord option will only be available for shells or meshes.

HC_Define_Shader, HC_Show_Shader_Definition_By_Key, HC_Show_Shader_Inputs

Parameters

shader_key: The key of the shader, returned by Define_Shader when defining a modern custom shader.

inputs: The input specification for the shader.