Creates a new CompiledPass object.
The material to which this pass belongs.
Indicates whether the screen projection should be calculated by forcing a separate scene matrix and view-projection matrix. This is used to prevent rounding errors when using multiple passes with different projection code.
Indicates whether the output alpha value should remain unchanged compared to the material's original alpha.
The method that provides the ambient lighting contribution. Defaults to AmbientBasicMethod.
The method that provides the ambient lighting contribution. Defaults to AmbientBasicMethod.
The ColorTransform object to transform the colour of the material with. Defaults to null.
The ColorTransform object to transform the colour of the material with. Defaults to null.
The EffectColorTransformMethod object to transform the colour of the material with. Defaults to null.
The EffectColorTransformMethod object to transform the colour of the material with. Defaults to null.
Define which light source types to use for diffuse reflections. This allows choosing between regular lights and/or light probes for diffuse reflections.
The method that provides the diffuse lighting contribution. Defaults to DiffuseBasicMethod.
The method that provides the diffuse lighting contribution. Defaults to DiffuseBasicMethod.
Whether or not to use fallOff and radius properties for lights. This can be used to improve performance and compatibility for constrained mode.
Indicates whether or not shadow casting lights need to be included.
Indicates whether or not shadow casting lights need to be included.
The method used to generate the per-pixel normals. Defaults to NormalBasicMethod.
The method used to generate the per-pixel normals. Defaults to NormalBasicMethod.
The number of "effect" methods added to the material.
The method used to render shadows cast on this surface, or null if no shadows are to be rendered. Defaults to null.
The method used to render shadows cast on this surface, or null if no shadows are to be rendered. Defaults to null.
Define which light source types to use for specular reflections. This allows choosing between regular lights and/or light probes for specular reflections.
The method that provides the specular lighting contribution. Defaults to SpecularBasicMethod.
The method that provides the specular lighting contribution. Defaults to SpecularBasicMethod.
Indicates whether the shader uses any specular component.
Indicates whether the shader uses any shadows.
Indicates whether the shader uses any specular component.
Initializes the unchanging constant data for this material.
Appends an "effect" shading method to the shader. Effect methods are those that do not influence the lighting but modulate the shaded colour, used for fog, outlines, etc. The method will be applied to the result of the methods added prior.
Adds an effect method at the specified index amongst the methods already added to the material. Effect methods are those that do not influence the lighting but modulate the shaded colour, used for fog, outlines, etc. The method will be applied to the result of the methods with a lower index.
Add an event listener
Dispatch an event
Returns the method added at the given index.
The index of the method to retrieve.
The method at the given index.
Queries whether a given effects method was added to the material.
The method to be queried.
true if the method was added to the material, false otherwise.
check if an object has an event listener assigned to it
Marks the shader program as invalid, so it will be recompiled before the next render.
Removes an effect method from the material.
The method to be removed.
remove an effect method at the specified index from the material.
Remove an event listener
Generated using TypeDoc
CompiledPass forms an abstract base class for the default compiled pass materials provided by Away3D, using material methods to define their appearance.