class ShaderCompiler
package away3d.materials.compilation
extended by LightingShaderCompiler, SuperShaderCompiler
Available on all platforms
ShaderCompiler is an abstract base class for shader compilers that use modular shader methods to assemble a material. Concrete subclasses are used by the default materials.
See also:
away3d.materials.methods.ShadingMethodBase
Constructor
new(profile:String)
Creates a new ShaderCompiler object.
Parameters:
profile | The compatibility profile of the renderer. |
|---|
Variables
Methods
setConstantDataBuffers(vertexConstantData:Vector<Float>, fragmentConstantData:Vector<Float>):Void
Sets the constant buffers allocated by the material. This allows setting constant data during compilation.
Parameters:
vertexConstantData | The vertex constant data buffer. |
|---|---|
fragmentConstantData | The fragment constant data buffer. |
setTextureSampling(smooth:Bool, repeat:Bool, mipmap:Bool, anisotropy:Anisotropy):Void
Sets the default texture sampling properties.
Parameters:
smooth | Indicates whether the texture should be filtered when sampled. Defaults to true. |
|---|---|
repeat | Indicates whether the texture should be tiled when sampled. Defaults to true. |
mipmap | Indicates whether or not any used textures should use mipmapping. Defaults to true. |