Class: ColorLitMaterial
ColorLitMaterial
Hierarchy
↳
ColorLitMaterial
Constructors
Properties
Accessors
- shader
- doubleSide
- castShadow
- acceptShadow
- castReflection
- blendMode
- depthCompare
- transparent
- cullMode
- depthWriteEnabled
- useBillboard
Methods
- clone
- debug
- getPass
- getAllPass
- destroy
- setDefine
- setTexture
- setStorageBuffer
- setUniformBuffer
- setUniformFloat
- setUniformVector2
- setUniformVector3
- setUniformVector4
- setUniformColor
- getUniformFloat
- getUniformV2
- getUniformV3
- getUniformV4
- getUniformColor
- getTexture
- getStorageBuffer
- getStructStorageBuffer
- getUniformBuffer
- applyUniform
Constructors
constructor
• new ColorLitMaterial(): ColorLitMaterial
Returns
Overrides
Defined in
src/materials/ColorLitMaterial.ts:16
Properties
count
▪ Static
count: number
= 0
Defined in
src/materials/ColorLitMaterial.ts:12
instanceID
• instanceID: string
Material Unique Identifier
Inherited from
Defined in
name
• name: string
name of this material
Inherited from
Defined in
enable
• enable: boolean
= true
Inherited from
Defined in
Accessors
shader
• get
shader(): Shader
Returns
Inherited from
Material.shader
Defined in
• set
shader(shader
): void
Parameters
Name | Type |
---|---|
shader | Shader |
Returns
void
Inherited from
Material.shader
Defined in
doubleSide
• get
doubleSide(): boolean
Returns
boolean
Inherited from
Material.doubleSide
Defined in
• set
doubleSide(value
): void
Parameters
Name | Type |
---|---|
value | boolean |
Returns
void
Inherited from
Material.doubleSide
Defined in
castShadow
• get
castShadow(): boolean
Returns
boolean
Inherited from
Material.castShadow
Defined in
• set
castShadow(value
): void
Parameters
Name | Type |
---|---|
value | boolean |
Returns
void
Inherited from
Material.castShadow
Defined in
acceptShadow
• get
acceptShadow(): boolean
Returns
boolean
Inherited from
Material.acceptShadow
Defined in
• set
acceptShadow(value
): void
Parameters
Name | Type |
---|---|
value | boolean |
Returns
void
Inherited from
Material.acceptShadow
Defined in
castReflection
• get
castReflection(): boolean
Returns
boolean
Inherited from
Material.castReflection
Defined in
• set
castReflection(value
): void
Parameters
Name | Type |
---|---|
value | boolean |
Returns
void
Inherited from
Material.castReflection
Defined in
blendMode
• get
blendMode(): BlendMode
Returns
Inherited from
Material.blendMode
Defined in
• set
blendMode(value
): void
Parameters
Name | Type |
---|---|
value | BlendMode |
Returns
void
Inherited from
Material.blendMode
Defined in
depthCompare
• get
depthCompare(): GPUCompareFunction
Returns
GPUCompareFunction
Inherited from
Material.depthCompare
Defined in
• set
depthCompare(value
): void
Parameters
Name | Type |
---|---|
value | GPUCompareFunction |
Returns
void
Inherited from
Material.depthCompare
Defined in
transparent
• get
transparent(): boolean
Returns
boolean
Inherited from
Material.transparent
Defined in
• set
transparent(value
): void
Parameters
Name | Type |
---|---|
value | boolean |
Returns
void
Inherited from
Material.transparent
Defined in
cullMode
• get
cullMode(): GPUCullMode
Returns
GPUCullMode
Inherited from
Material.cullMode
Defined in
• set
cullMode(value
): void
Parameters
Name | Type |
---|---|
value | GPUCullMode |
Returns
void
Inherited from
Material.cullMode
Defined in
depthWriteEnabled
• get
depthWriteEnabled(): boolean
Returns
boolean
Inherited from
Material.depthWriteEnabled
Defined in
• set
depthWriteEnabled(value
): void
Parameters
Name | Type |
---|---|
value | boolean |
Returns
void
Inherited from
Material.depthWriteEnabled
Defined in
useBillboard
• set
useBillboard(value
): void
Parameters
Name | Type |
---|---|
value | boolean |
Returns
void
Inherited from
Material.useBillboard
Defined in
Methods
clone
▸ clone(): this
clone one material
Returns
this
Material
Overrides
Defined in
src/materials/ColorLitMaterial.ts:47
debug
▸ debug(): void
Returns
void
Defined in
src/materials/ColorLitMaterial.ts:51
getPass
▸ getPass(passType
): RenderShaderPass
[]
get render pass by renderType
Parameters
Name | Type |
---|---|
passType | PassType |
Returns
Inherited from
Defined in
getAllPass
▸ getAllPass(): RenderShaderPass
[]
get all color render pass
Returns
Inherited from
Defined in
destroy
▸ destroy(force
): void
Parameters
Name | Type |
---|---|
force | boolean |
Returns
void
Inherited from
Defined in
setDefine
▸ setDefine(define
, value
): void
Parameters
Name | Type |
---|---|
define | string |
value | boolean |
Returns
void
Inherited from
Defined in
setTexture
▸ setTexture(propertyName
, texture
): void
Parameters
Name | Type |
---|---|
propertyName | string |
texture | Texture |
Returns
void
Inherited from
Defined in
setStorageBuffer
▸ setStorageBuffer(propertyName
, buffer
): void
Parameters
Name | Type |
---|---|
propertyName | string |
buffer | StorageGPUBuffer |
Returns
void
Inherited from
Defined in
setUniformBuffer
▸ setUniformBuffer(propertyName
, buffer
): void
Parameters
Name | Type |
---|---|
propertyName | string |
buffer | UniformGPUBuffer |
Returns
void
Inherited from
Defined in
setUniformFloat
▸ setUniformFloat(propertyName
, value
): void
Parameters
Name | Type |
---|---|
propertyName | string |
value | number |
Returns
void
Inherited from
Defined in
setUniformVector2
▸ setUniformVector2(propertyName
, value
): void
Parameters
Name | Type |
---|---|
propertyName | string |
value | Vector2 |
Returns
void
Inherited from
Defined in
setUniformVector3
▸ setUniformVector3(propertyName
, value
): void
Parameters
Name | Type |
---|---|
propertyName | string |
value | Vector3 |
Returns
void
Inherited from
Defined in
setUniformVector4
▸ setUniformVector4(propertyName
, value
): void
Parameters
Name | Type |
---|---|
propertyName | string |
value | Vector4 |
Returns
void
Inherited from
Defined in
setUniformColor
▸ setUniformColor(propertyName
, value
): void
Parameters
Name | Type |
---|---|
propertyName | string |
value | Color |
Returns
void
Inherited from
Defined in
getUniformFloat
▸ getUniformFloat(str
): any
Parameters
Name | Type |
---|---|
str | string |
Returns
any
Inherited from
Defined in
getUniformV2
▸ getUniformV2(str
): Vector2
Parameters
Name | Type |
---|---|
str | string |
Returns
Inherited from
Defined in
getUniformV3
▸ getUniformV3(str
): Vector3
Parameters
Name | Type |
---|---|
str | string |
Returns
Inherited from
Defined in
getUniformV4
▸ getUniformV4(str
): Vector4
Parameters
Name | Type |
---|---|
str | string |
Returns
Vector4
Inherited from
Defined in
getUniformColor
▸ getUniformColor(str
): Color
Parameters
Name | Type |
---|---|
str | string |
Returns
Inherited from
Defined in
getTexture
▸ getTexture(str
): Texture
Parameters
Name | Type |
---|---|
str | string |
Returns
Inherited from
Defined in
getStorageBuffer
▸ getStorageBuffer(str
): StorageGPUBuffer
Parameters
Name | Type |
---|---|
str | string |
Returns
Inherited from
Defined in
getStructStorageBuffer
▸ getStructStorageBuffer(str
): GPUBufferBase
Parameters
Name | Type |
---|---|
str | string |
Returns
GPUBufferBase
Inherited from
Material.getStructStorageBuffer
Defined in
getUniformBuffer
▸ getUniformBuffer(str
): GPUBufferBase
Parameters
Name | Type |
---|---|
str | string |
Returns
GPUBufferBase
Inherited from
Defined in
applyUniform
▸ applyUniform(): void
Returns
void