EffectMaterial
Extends:
Implements:
An effect material for compound shaders. Supports dithering.
Static Member Summary
Static Public Members | ||
public static get |
this get was deprecated. Use EffectShaderSection instead.
An enumeration of shader code placeholders. |
Constructor Summary
Public Constructor | ||
public |
constructor(shaderParts: Map<String, String>, defines: Map<String, String>, uniforms: Map<String, Uniform>, camera: Camera, dithering: Boolean) Constructs a new effect material. |
Member Summary
Public Members | ||
public get |
depthBuffer: Texture The depth buffer. |
|
public set |
|
|
public get |
depthPacking: DepthPackingStrategies The depth packing strategy. |
|
public set |
|
|
public get |
Indicates whether output encoding is enabled. |
|
public set |
|
|
public |
extensions: {} |
|
public |
|
|
public set |
inputBuffer: Texture The input buffer. |
|
public |
|
|
public get |
The time in seconds. |
|
public set |
|
|
public |
vertexShader: * |
Method Summary
Public Methods | ||
public |
adoptCameraSettings(camera: Camera) this method was deprecated. Use copyCameraSettings instead.
Copies the settings of the given camera. |
|
public |
copyCameraSettings(camera: Camera) Copies the settings of the given camera. |
|
public |
isOutputEncodingEnabled(value: *): Boolean this method was deprecated. Use encodeOutput instead.
Indicates whether output encoding is enabled. |
|
public |
setDefines(defines: Map<String, String>): EffectMaterial this method was deprecated. Use setShaderData instead.
Sets the shader macros. |
|
public |
setDeltaTime(value: Number) this method was deprecated. Use time instead.
Sets the delta time. |
|
public |
setDepthBuffer(buffer: Texture, depthPacking: DepthPackingStrategies) this method was deprecated. Use depthBuffer and depthPacking instead.
Sets the depth buffer. |
|
public |
setExtensions(extensions: Set<WebGLExtension>): EffectMaterial this method was deprecated. Use setShaderData instead.
Sets the required shader extensions. |
|
public |
setInputBuffer(value: Texture) this method was deprecated. Use inputBuffer instead.
Sets the input buffer. |
|
public |
setOutputEncodingEnabled(value: Boolean) this method was deprecated. Use encodeOutput instead.
Enables or disables output encoding. |
|
public |
Sets the shader data. |
|
public |
setShaderParts(shaderParts: Map<String, String>): EffectMaterial this method was deprecated. Use setShaderData instead.
Sets the shader parts. |
|
public |
Sets the resolution. |
|
public |
setUniforms(uniforms: Map<String, Uniform>): EffectMaterial this method was deprecated. Use setShaderData instead.
Sets the shader uniforms. |
Static Public Members
Public Constructors
public constructor(shaderParts: Map<String, String>, defines: Map<String, String>, uniforms: Map<String, Uniform>, camera: Camera, dithering: Boolean) source
Constructs a new effect material.
Params:
Name | Type | Attribute | Description |
shaderParts | Map<String, String> |
|
Deprecated. Use setShaderData instead. |
defines | Map<String, String> |
|
Deprecated. Use setShaderData instead. |
uniforms | Map<String, Uniform> |
|
Deprecated. Use setShaderData instead. |
camera | Camera |
|
A camera. |
dithering | Boolean |
|
Deprecated. |
Public Members
public set depthBuffer source
public set depthPacking source
public set encodeOutput source
public extensions: {} source
public fragmentShader: * source
public set time source
public vertexShader: * source
Public Methods
public adoptCameraSettings(camera: Camera) source
Copies the settings of the given camera.
Params:
Name | Type | Attribute | Description |
camera | Camera | A camera. |
public copyCameraSettings(camera: Camera) source
Copies the settings of the given camera.
Params:
Name | Type | Attribute | Description |
camera | Camera | A camera. |
public isOutputEncodingEnabled(value: *): Boolean source
Indicates whether output encoding is enabled.
Params:
Name | Type | Attribute | Description |
value | * |
public setDefines(defines: Map<String, String>): EffectMaterial source
Sets the shader macros.
public setDeltaTime(value: Number) source
Sets the delta time.
Params:
Name | Type | Attribute | Description |
value | Number | The delta time in seconds. |
public setDepthBuffer(buffer: Texture, depthPacking: DepthPackingStrategies) source
Sets the depth buffer.
Params:
Name | Type | Attribute | Description |
buffer | Texture | The depth texture. |
|
depthPacking | DepthPackingStrategies |
|
The depth packing strategy. |
public setExtensions(extensions: Set<WebGLExtension>): EffectMaterial source
Sets the required shader extensions.
Params:
Name | Type | Attribute | Description |
extensions | Set<WebGLExtension> | A collection of extensions. |
public setInputBuffer(value: Texture) source
Sets the input buffer.
Params:
Name | Type | Attribute | Description |
value | Texture | The input buffer. |
public setOutputEncodingEnabled(value: Boolean) source
Enables or disables output encoding.
Params:
Name | Type | Attribute | Description |
value | Boolean | Whether output encoding should be enabled. |
public setShaderData(data: EffectShaderData): EffectMaterial source
Sets the shader data.
Params:
Name | Type | Attribute | Description |
data | EffectShaderData | The shader data. |
public setShaderParts(shaderParts: Map<String, String>): EffectMaterial source
Sets the shader parts.
Params:
Name | Type | Attribute | Description |
shaderParts | Map<String, String> | A collection of shader snippets. See EffectShaderSection. |
public setUniforms(uniforms: Map<String, Uniform>): EffectMaterial source
Sets the shader uniforms.