SetTextShaderConstantByName

Description

Sets a shader constant for a text by name, the constant must be marked as "uniform" in the shader source. The Text will set the specified constant to this value for any shader that it is applied to it. All shader values have 1 to 4 components, this command accepts 4 values and discards any that are not used by the named variable.

Definition

SetTextShaderConstantByName(UINT iTextIndex, szName, value1, value2, value3, value4)

Parameters