ComponentRef

Shader Variable

ShaderVariable

Represents a "uniform variable" in a GLSL shader. The type of the uniform variable must be "float".

This component can only be used in the Shader.UniformVariables property.

See also: Shader

Properties

VariableName

The name of the uniform variable in GLSL. Case-sensitive.

Value

Set this property to set the current value of the uniform variable. This property is only valid if ValuePropRef is not set.

ValuePropRef

Use this to connect another ZGameEditor property to the value of a uniform variable. For example, type "App.Time" to connect the current application time to a GLSL variable for use as animation.

Green Marinee theme adapted by David Gilbert, powered by PmWiki