Sets the path to the shader source for the indicated shader stage.
int32 SetShaderAt( int32 p_nShaderStageIndex, string p_sPathToFile )
Parameter Type | Parameter Name | Documentation |
---|---|---|
int32 | p_nShaderStageIndex | An <int32> where 0 = vertex shader, 1 = control shader, 2 = evaluation shader, 3 = geometry shader, 4 = fragment shader, and 5 = compute shader. |
string | p_sPathToFile | A string containing the absolute or relative path to the shader source code. |
None published. Please look for an example in the Scenome Scripting Language code base.