Class: StandShader
Hierarchy
↳
StandShader
Constructors
Properties
Accessors
- baseMap
- baseColor
- normalMap
- doubleSide
- alphaCutoff
- emissiveColor
- emissiveIntensity
- transformUV1
- uvTransform_2
- depthWriteEnabled
- materialF0
- specularColor
- roughness
- metallic
- ao
- metallic_min
- metallic_max
- roughness_min
- roughness_max
- normalScale
- maskMap
- aoMap
- clearCoatRoughnessMap
- brdfLUT
- emissiveMap
- envIntensity
- ior
- clearcoatFactor
- clearcoatRoughnessFactor
- clearcoatWeight
- clearcoatColor
Methods
- addRenderPass
- removeShader
- removeShaderByIndex
- getSubShaders
- hasSubShaders
- getDefaultShaders
- getDefaultColorShader
- setDefine
- hasDefine
- deleteDefine
- setUniform
- setUniformFloat
- setUniformVector2
- setUniformVector3
- setUniformVector4
- setUniformColor
- getUniform
- getUniformFloat
- getUniformVector2
- getUniformVector3
- getUniformVector4
- getUniformColor
- setTexture
- getTexture
- setUniformBuffer
- getUniformBuffer
- setStorageBuffer
- getStorageBuffer
- setStructStorageBuffer
- getStructStorageBuffer
- noticeValueChange
- destroy
- clone
- applyUniform
- setDefault
- useCleanCoat
Constructors
constructor
• new StandShader(): StandShader
Returns
Overrides
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:12
Properties
computes
• computes: RenderShaderCompute
[]
Inherited from
Defined in
src/gfx/graphics/webGpu/shader/Shader.ts:19
passShader
• passShader: Map
<PassType
, RenderShaderPass
[]>
Inherited from
Defined in
src/gfx/graphics/webGpu/shader/Shader.ts:21
Accessors
baseMap
• get
baseMap(): Texture
Returns
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:72
• set
baseMap(value
): void
Parameters
Name | Type |
---|---|
value | Texture |
Returns
void
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:76
baseColor
• get
baseColor(): Color
Returns
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:80
• set
baseColor(value
): void
Parameters
Name | Type |
---|---|
value | Color |
Returns
void
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:84
normalMap
• get
normalMap(): Texture
Returns
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:88
• set
normalMap(value
): void
Parameters
Name | Type |
---|---|
value | Texture |
Returns
void
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:92
doubleSide
• get
doubleSide(): boolean
Returns
boolean
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:96
• set
doubleSide(value
): void
Parameters
Name | Type |
---|---|
value | boolean |
Returns
void
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:99
alphaCutoff
• get
alphaCutoff(): any
Returns
any
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:103
• set
alphaCutoff(value
): void
Parameters
Name | Type |
---|---|
value | any |
Returns
void
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:106
emissiveColor
• get
emissiveColor(): Color
Returns
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:112
• set
emissiveColor(value
): void
Parameters
Name | Type |
---|---|
value | Color |
Returns
void
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:116
emissiveIntensity
• get
emissiveIntensity(): number
Returns
number
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:120
• set
emissiveIntensity(value
): void
Parameters
Name | Type |
---|---|
value | number |
Returns
void
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:124
transformUV1
• get
transformUV1(): Vector4
get transformUV1
Returns
Vector4
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:131
• set
transformUV1(value
): void
set transformUV1
Parameters
Name | Type |
---|---|
value | Vector4 |
Returns
void
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:138
uvTransform_2
• get
uvTransform_2(): Vector4
get transformUV2
Returns
Vector4
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:146
• set
uvTransform_2(value
): void
set transformUV2
Parameters
Name | Type |
---|---|
value | Vector4 |
Returns
void
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:153
depthWriteEnabled
• get
depthWriteEnabled(): boolean
Returns
boolean
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:158
• set
depthWriteEnabled(value
): void
Parameters
Name | Type |
---|---|
value | boolean |
Returns
void
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:161
materialF0
• get
materialF0(): Vector4
get reflectivity
Returns
Vector4
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:168
• set
materialF0(value
): void
set reflectivity
Parameters
Name | Type |
---|---|
value | Vector4 |
Returns
void
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:175
specularColor
• get
specularColor(): Color
get specularColor
Returns
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:182
• set
specularColor(value
): void
specularColor set reflectivity
Parameters
Name | Type |
---|---|
value | Color |
Returns
void
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:189
roughness
• get
roughness(): number
get roughness
Returns
number
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:196
• set
roughness(value
): void
set roughness
Parameters
Name | Type |
---|---|
value | number |
Returns
void
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:203
metallic
• get
metallic(): number
get metallic
Returns
number
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:210
• set
metallic(value
): void
set metallic
Parameters
Name | Type |
---|---|
value | number |
Returns
void
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:217
ao
• get
ao(): number
get Ambient Occlussion, dealing with the effect of ambient light on object occlusion
Returns
number
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:224
• set
ao(value
): void
set Ambient Occlussion, dealing with the effect of ambient light on object occlusion
Parameters
Name | Type |
---|---|
value | number |
Returns
void
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:231
metallic_min
• get
metallic_min(): number
get min metallic
Returns
number
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:238
• set
metallic_min(value
): void
set min metallic
Parameters
Name | Type |
---|---|
value | number |
Returns
void
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:245
metallic_max
• get
metallic_max(): number
get max metallic
Returns
number
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:252
• set
metallic_max(value
): void
set max metallic
Parameters
Name | Type |
---|---|
value | number |
Returns
void
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:259
roughness_min
• get
roughness_min(): number
get min roughness
Returns
number
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:266
• set
roughness_min(value
): void
set min roughness
Parameters
Name | Type |
---|---|
value | number |
Returns
void
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:273
roughness_max
• get
roughness_max(): number
get max roughness
Returns
number
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:280
• set
roughness_max(value
): void
set max roughness
Parameters
Name | Type |
---|---|
value | number |
Returns
void
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:287
normalScale
• get
normalScale(): number
Get the influence of Normal mapping on materials
Returns
number
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:294
• set
normalScale(value
): void
Set the influence of Normal mapping on materials
Parameters
Name | Type |
---|---|
value | number |
Returns
void
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:301
maskMap
• get
maskMap(): Texture
get Mask Map R_chanel -> AoMap G_chanel -> Roughness B_chanel -> Metallic A_chanel -> C
Returns
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:312
• set
maskMap(value
): void
set Mask Map R_chanel -> AoMap G_chanel -> Roughness B_chanel -> Metallic A_chanel -> C
Parameters
Name | Type |
---|---|
value | Texture |
Returns
void
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:323
aoMap
• get
aoMap(): Texture
get Ambient Occlussion Map, dealing with the effect of ambient light on object occlusion
Returns
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:346
• set
aoMap(value
): void
set Ambient Occlussion Map, dealing with the effect of ambient light on object occlusion
Parameters
Name | Type |
---|---|
value | Texture |
Returns
void
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:335
clearCoatRoughnessMap
• get
clearCoatRoughnessMap(): Texture
get clearCoatRoughnessMap
Returns
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:364
• set
clearCoatRoughnessMap(value
): void
set clearCoatRoughnessMap
Parameters
Name | Type |
---|---|
value | Texture |
Returns
void
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:353
brdfLUT
• get
brdfLUT(): Texture
get brdf query map
Returns
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:371
• set
brdfLUT(value
): void
set brdf query map
Parameters
Name | Type |
---|---|
value | Texture |
Returns
void
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:378
emissiveMap
• get
emissiveMap(): Texture
get emissive map
Returns
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:386
• set
emissiveMap(value
): void
set emissive map
Parameters
Name | Type |
---|---|
value | Texture |
Returns
void
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:393
envIntensity
• get
envIntensity(): number
get intensity of environment light or color of sampled by texture
Returns
number
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:407
• set
envIntensity(value
): void
set intensity of environment light or color of sampled by texture
Parameters
Name | Type |
---|---|
value | number |
Returns
void
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:400
ior
• get
ior(): number
get factor of refractive
Returns
number
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:421
• set
ior(value
): void
set factor of refractive
Parameters
Name | Type |
---|---|
value | number |
Returns
void
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:414
clearcoatFactor
• get
clearcoatFactor(): number
get the factor of the clearcoat
Returns
number
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:443
• set
clearcoatFactor(value
): void
Set the factor of the clearcoat
Parameters
Name | Type |
---|---|
value | number |
Returns
void
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:435
clearcoatRoughnessFactor
• get
clearcoatRoughnessFactor(): number
get the factor of the clearcoat Roughness
Returns
number
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:458
• set
clearcoatRoughnessFactor(value
): void
set the factor of the clearcoat Roughness
Parameters
Name | Type |
---|---|
value | number |
Returns
void
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:450
clearcoatWeight
• get
clearcoatWeight(): number
get the weight of the clearcoat
Returns
number
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:473
• set
clearcoatWeight(value
): void
set the weight of the clearcoat
Parameters
Name | Type |
---|---|
value | number |
Returns
void
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:465
clearcoatColor
• get
clearcoatColor(): Color
set the color of the clearcoat
Returns
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:488
• set
clearcoatColor(value
): void
get the color of the clearcoat
Parameters
Name | Type |
---|---|
value | Color |
Returns
void
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:480
Methods
addRenderPass
▸ addRenderPass(renderShader
, index?
): void
Parameters
Name | Type | Default value |
---|---|---|
renderShader | RenderShaderPass | undefined |
index | number | -1 |
Returns
void
Inherited from
Defined in
src/gfx/graphics/webGpu/shader/Shader.ts:28
removeShader
▸ removeShader(renderShader
, index?
): void
Parameters
Name | Type | Default value |
---|---|---|
renderShader | RenderShaderPass | undefined |
index | number | -1 |
Returns
void
Inherited from
Defined in
src/gfx/graphics/webGpu/shader/Shader.ts:38
removeShaderByIndex
▸ removeShaderByIndex(passType
, index?
): void
Parameters
Name | Type | Default value |
---|---|---|
passType | PassType | undefined |
index | number | -1 |
Returns
void
Inherited from
Defined in
src/gfx/graphics/webGpu/shader/Shader.ts:52
getSubShaders
▸ getSubShaders(passType
): RenderShaderPass
[]
Parameters
Name | Type |
---|---|
passType | PassType |
Returns
Inherited from
Defined in
src/gfx/graphics/webGpu/shader/Shader.ts:63
hasSubShaders
▸ hasSubShaders(passType
): boolean
Parameters
Name | Type |
---|---|
passType | PassType |
Returns
boolean
Inherited from
Defined in
src/gfx/graphics/webGpu/shader/Shader.ts:67
getDefaultShaders
▸ getDefaultShaders(): RenderShaderPass
[]
Returns
Inherited from
Defined in
src/gfx/graphics/webGpu/shader/Shader.ts:72
getDefaultColorShader
▸ getDefaultColorShader(): RenderShaderPass
Returns
Inherited from
Defined in
src/gfx/graphics/webGpu/shader/Shader.ts:76
setDefine
▸ setDefine(arg0
, arg1
): void
Parameters
Name | Type |
---|---|
arg0 | string |
arg1 | boolean |
Returns
void
Inherited from
Defined in
src/gfx/graphics/webGpu/shader/Shader.ts:80
hasDefine
▸ hasDefine(arg0
): boolean
Parameters
Name | Type |
---|---|
arg0 | string |
Returns
boolean
Inherited from
Defined in
src/gfx/graphics/webGpu/shader/Shader.ts:88
deleteDefine
▸ deleteDefine(arg0
): void
Parameters
Name | Type |
---|---|
arg0 | string |
Returns
void
Inherited from
Defined in
src/gfx/graphics/webGpu/shader/Shader.ts:99
setUniform
▸ setUniform(arg0
, arg1
): void
Parameters
Name | Type |
---|---|
arg0 | string |
arg1 | any |
Returns
void
Inherited from
Defined in
src/gfx/graphics/webGpu/shader/Shader.ts:107
setUniformFloat
▸ setUniformFloat(arg0
, arg1
): void
Parameters
Name | Type |
---|---|
arg0 | string |
arg1 | number |
Returns
void
Inherited from
Defined in
src/gfx/graphics/webGpu/shader/Shader.ts:115
setUniformVector2
▸ setUniformVector2(arg0
, arg1
): void
Parameters
Name | Type |
---|---|
arg0 | string |
arg1 | Vector2 |
Returns
void
Inherited from
Defined in
src/gfx/graphics/webGpu/shader/Shader.ts:123
setUniformVector3
▸ setUniformVector3(arg0
, arg1
): void
Parameters
Name | Type |
---|---|
arg0 | string |
arg1 | Vector3 |
Returns
void
Inherited from
Defined in
src/gfx/graphics/webGpu/shader/Shader.ts:131
setUniformVector4
▸ setUniformVector4(arg0
, arg1
): void
Parameters
Name | Type |
---|---|
arg0 | string |
arg1 | Vector4 |
Returns
void
Inherited from
Defined in
src/gfx/graphics/webGpu/shader/Shader.ts:139
setUniformColor
▸ setUniformColor(arg0
, arg1
): void
Parameters
Name | Type |
---|---|
arg0 | string |
arg1 | Color |
Returns
void
Inherited from
Defined in
src/gfx/graphics/webGpu/shader/Shader.ts:147
getUniform
▸ getUniform(arg0
): any
Parameters
Name | Type |
---|---|
arg0 | string |
Returns
any
Inherited from
Defined in
src/gfx/graphics/webGpu/shader/Shader.ts:155
getUniformFloat
▸ getUniformFloat(arg0
): number
Parameters
Name | Type |
---|---|
arg0 | string |
Returns
number
Inherited from
Defined in
src/gfx/graphics/webGpu/shader/Shader.ts:159
getUniformVector2
▸ getUniformVector2(arg0
): Vector2
Parameters
Name | Type |
---|---|
arg0 | string |
Returns
Inherited from
Defined in
src/gfx/graphics/webGpu/shader/Shader.ts:163
getUniformVector3
▸ getUniformVector3(arg0
): Vector3
Parameters
Name | Type |
---|---|
arg0 | string |
Returns
Inherited from
Defined in
src/gfx/graphics/webGpu/shader/Shader.ts:167
getUniformVector4
▸ getUniformVector4(arg0
): Vector4
Parameters
Name | Type |
---|---|
arg0 | string |
Returns
Vector4
Inherited from
Defined in
src/gfx/graphics/webGpu/shader/Shader.ts:171
getUniformColor
▸ getUniformColor(arg0
): Color
Parameters
Name | Type |
---|---|
arg0 | string |
Returns
Inherited from
Defined in
src/gfx/graphics/webGpu/shader/Shader.ts:175
setTexture
▸ setTexture(arg0
, arg1
): void
Parameters
Name | Type |
---|---|
arg0 | string |
arg1 | Texture |
Returns
void
Inherited from
Defined in
src/gfx/graphics/webGpu/shader/Shader.ts:179
getTexture
▸ getTexture(arg0
): Texture
Parameters
Name | Type |
---|---|
arg0 | string |
Returns
Inherited from
Defined in
src/gfx/graphics/webGpu/shader/Shader.ts:188
setUniformBuffer
▸ setUniformBuffer(arg0
, arg1
): void
Parameters
Name | Type |
---|---|
arg0 | string |
arg1 | UniformGPUBuffer |
Returns
void
Inherited from
Defined in
src/gfx/graphics/webGpu/shader/Shader.ts:192
getUniformBuffer
▸ getUniformBuffer(arg0
): GPUBufferBase
Parameters
Name | Type |
---|---|
arg0 | string |
Returns
GPUBufferBase
Inherited from
Defined in
src/gfx/graphics/webGpu/shader/Shader.ts:200
setStorageBuffer
▸ setStorageBuffer(arg0
, arg1
): void
Parameters
Name | Type |
---|---|
arg0 | string |
arg1 | StorageGPUBuffer |
Returns
void
Inherited from
Defined in
src/gfx/graphics/webGpu/shader/Shader.ts:204
getStorageBuffer
▸ getStorageBuffer(arg0
): StorageGPUBuffer
Parameters
Name | Type |
---|---|
arg0 | string |
Returns
Inherited from
Defined in
src/gfx/graphics/webGpu/shader/Shader.ts:212
setStructStorageBuffer
▸ setStructStorageBuffer<T
>(arg0
, arg1
): void
Type parameters
Name | Type |
---|---|
T | extends Struct |
Parameters
Name | Type |
---|---|
arg0 | string |
arg1 | StructStorageGPUBuffer <T > |
Returns
void
Inherited from
Defined in
src/gfx/graphics/webGpu/shader/Shader.ts:216
getStructStorageBuffer
▸ getStructStorageBuffer(arg0
): GPUBufferBase
Parameters
Name | Type |
---|---|
arg0 | string |
Returns
GPUBufferBase
Inherited from
Defined in
src/gfx/graphics/webGpu/shader/Shader.ts:224
noticeValueChange
▸ noticeValueChange(): void
Returns
void
Inherited from
Defined in
src/gfx/graphics/webGpu/shader/Shader.ts:228
destroy
▸ destroy(): void
Returns
void
Inherited from
Defined in
src/gfx/graphics/webGpu/shader/Shader.ts:236
clone
▸ clone(): Shader
Returns
Inherited from
Defined in
src/gfx/graphics/webGpu/shader/Shader.ts:240
applyUniform
▸ applyUniform(): void
Returns
void
Inherited from
Defined in
src/gfx/graphics/webGpu/shader/Shader.ts:249
setDefault
▸ setDefault(): void
Returns
void
Defined in
src/loader/parser/prefab/mats/shader/StandShader.ts:35
useCleanCoat
▸ useCleanCoat(): void
valid USE_CLEARCOAT define in shader
Returns
void