Class: GUIMaterial
material used in rendering GUI
Hierarchy
↳
GUIMaterial
Constructors
Properties
Accessors
- envMap
- shadowMap
- baseMap
- normalMap
- emissiveMap
- irradianceMap
- irradianceDepthMap
- shader
- doubleSide
- castShadow
- acceptShadow
- castReflection
- blendMode
- depthCompare
- transparent
- cullMode
- depthWriteEnabled
- useBillboard
Methods
- setPanelRatio
- setScissorRect
- setScissorEnable
- setScissorCorner
- setScreenSize
- setTextures
- getPass
- getAllPass
- clone
- destroy
- setDefine
- setTexture
- setStorageBuffer
- setUniformBuffer
- setUniformFloat
- setUniformVector2
- setUniformVector3
- setUniformVector4
- setUniformColor
- getUniformFloat
- getUniformV2
- getUniformV3
- getUniformV4
- getUniformColor
- getTexture
- getStorageBuffer
- getStructStorageBuffer
- getUniformBuffer
- applyUniform
Constructors
constructor
• new GUIMaterial(space
): GUIMaterial
Parameters
Name | Type |
---|---|
space | GUISpace |
Returns
Overrides
Defined in
src/components/gui/core/GUIMaterial.ts:24
Properties
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
envMap
• set
envMap(texture
): void
Parameters
Name | Type |
---|---|
texture | Texture |
Returns
void
Defined in
src/components/gui/core/GUIMaterial.ts:130
shadowMap
• set
shadowMap(texture
): void
Parameters
Name | Type |
---|---|
texture | Texture |
Returns
void
Defined in
src/components/gui/core/GUIMaterial.ts:131
baseMap
• set
baseMap(texture
): void
Parameters
Name | Type |
---|---|
texture | Texture |
Returns
void
Defined in
src/components/gui/core/GUIMaterial.ts:132
normalMap
• set
normalMap(value
): void
Parameters
Name | Type |
---|---|
value | Texture |
Returns
void
Defined in
src/components/gui/core/GUIMaterial.ts:133
emissiveMap
• set
emissiveMap(value
): void
Parameters
Name | Type |
---|---|
value | Texture |
Returns
void
Defined in
src/components/gui/core/GUIMaterial.ts:134
irradianceMap
• set
irradianceMap(value
): void
Parameters
Name | Type |
---|---|
value | Texture |
Returns
void
Defined in
src/components/gui/core/GUIMaterial.ts:135
irradianceDepthMap
• set
irradianceDepthMap(value
): void
Parameters
Name | Type |
---|---|
value | Texture |
Returns
void
Defined in
src/components/gui/core/GUIMaterial.ts:136
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
setPanelRatio
▸ setPanelRatio(pixelRatio
): void
Parameters
Name | Type |
---|---|
pixelRatio | number |
Returns
void
Defined in
src/components/gui/core/GUIMaterial.ts:64
setScissorRect
▸ setScissorRect(left
, bottom
, right
, top
): void
Parameters
Name | Type |
---|---|
left | number |
bottom | number |
right | number |
top | number |
Returns
void
Defined in
src/components/gui/core/GUIMaterial.ts:68
setScissorEnable
▸ setScissorEnable(value
): void
Parameters
Name | Type |
---|---|
value | boolean |
Returns
void
Defined in
src/components/gui/core/GUIMaterial.ts:74
setScissorCorner
▸ setScissorCorner(radius
, fadeOut
): void
Parameters
Name | Type |
---|---|
radius | number |
fadeOut | number |
Returns
void
Defined in
src/components/gui/core/GUIMaterial.ts:86
setScreenSize
▸ setScreenSize(width
, height
): this
Write screenSize size to the shader
Parameters
Name | Type |
---|---|
width | number |
height | number |
Returns
this
Defined in
src/components/gui/core/GUIMaterial.ts:94
setTextures
▸ setTextures(list
): void
Update texture used in GUI
Parameters
Name | Type |
---|---|
list | Texture [] |
Returns
void
Defined in
src/components/gui/core/GUIMaterial.ts:103
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
clone
▸ clone(): Material
clone one material
Returns
Material
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