Creates a new MethodCompilerVO object.
The index of the vertex constant containing the camera position.
The index for the color attribute stream.
The amount of dependencies on the vertex color.
The index for the color transform fragment constant.
The index for the common data register.
The index for the curve vertex attribute stream.
The depth compare mode used to render the renderables using this material.
The amount of dependencies on the global position. This can be 0 while hasGlobalPosDependencies is true when the global position is used as a temporary value (fe to calculate the view direction)
The first index for the fragment constants containing the light data.
Indices for the light probe diffuse textures.
Indices for the light probe specular textures.
The starting index if the vertex constant to which light data needs to be uploaded.
The amount of dependencies on the normal vector.
The index for the vertex normal attribute stream.
The amount of used vertex streams in the vertex code. Used by the animation code generation to know from which index on streams are available.
Indicates whether or not normals are output.
Indicates whether or not normal calculations are output in tangent space.
The index of the fragment constant containing the weights for the light probes.
The amount of dependencies on the projected position.
The index of the vertex constant containing the scene matrix.
The index of the vertex constant containing the uniform scene matrix (the inverse transpose).
The amount of dependencies on the secondary UV coordinates.
The index for the secondary UV vertex attribute stream.
The amount of tangent vector dependencies (fragment shader).
The index for the vertex tangent attribute stream.
Indicates whether the pass requires any fragment animation code.
Indicates whether there are any dependencies on the world-space position vector.
Indicates whether the shader uses any lights.
Indicates whether the lights uses any diffuse components.
Indicates whether the lights uses any specular components.
Indicates whether there are any dependencies on the local position vector.
Indicates whether the shader uses any light probes.
Indicates whether the probes uses any diffuse components.
Indicates whether the probes uses any specular components.
Indicates whether or not normal calculations are expected in tangent space. This is only the case if no world-space dependencies exist and normals are being output.
The amount of dependencies on the primary UV coordinates.
The index for the UV vertex attribute stream.
The index for the UV transformation matrix vertex constant.
The amount of dependencies on the view direction.
The index of the vertex constant containing the view matrix.
Indicate whether the shader should write to the depth buffer or not. Ignored when blending is enabled.
Factory method to create a concrete compiler object for this object
Initializes the unchanging constant data for this shader object.
Clears dependency counts for all registers. Called when recompiling a pass.
The blend mode to use when drawing this renderable. The following blend modes are supported:
Generated using TypeDoc
ShaderBase keeps track of the number of dependencies for "named registers" used across a pass. Named registers are that are not necessarily limited to a single method. They are created by the compiler and passed on to methods. The compiler uses the results to reserve usages through RegisterPool, which can be removed each time a method has been compiled into the shader.
RegisterPool.addUsage