Skip to content

Class: StandShader

Hierarchy

Constructors

Properties

Accessors

Methods

Constructors

constructor

new StandShader(): StandShader

Returns

StandShader

Overrides

Shader.constructor

Defined in

src/loader/parser/prefab/mats/shader/StandShader.ts:12

Properties

computes

computes: RenderShaderCompute[]

Inherited from

Shader.computes

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:19


passShader

passShader: Map<PassType, RenderShaderPass[]>

Inherited from

Shader.passShader

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:21

Accessors

baseMap

get baseMap(): Texture

Returns

Texture

Defined in

src/loader/parser/prefab/mats/shader/StandShader.ts:72

set baseMap(value): void

Parameters

NameType
valueTexture

Returns

void

Defined in

src/loader/parser/prefab/mats/shader/StandShader.ts:76


baseColor

get baseColor(): Color

Returns

Color

Defined in

src/loader/parser/prefab/mats/shader/StandShader.ts:80

set baseColor(value): void

Parameters

NameType
valueColor

Returns

void

Defined in

src/loader/parser/prefab/mats/shader/StandShader.ts:84


normalMap

get normalMap(): Texture

Returns

Texture

Defined in

src/loader/parser/prefab/mats/shader/StandShader.ts:88

set normalMap(value): void

Parameters

NameType
valueTexture

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

NameType
valueboolean

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

NameType
valueany

Returns

void

Defined in

src/loader/parser/prefab/mats/shader/StandShader.ts:106


emissiveColor

get emissiveColor(): Color

Returns

Color

Defined in

src/loader/parser/prefab/mats/shader/StandShader.ts:112

set emissiveColor(value): void

Parameters

NameType
valueColor

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

NameType
valuenumber

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

NameType
valueVector4

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

NameType
valueVector4

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

NameType
valueboolean

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

NameType
valueVector4

Returns

void

Defined in

src/loader/parser/prefab/mats/shader/StandShader.ts:175


specularColor

get specularColor(): Color

get specularColor

Returns

Color

Defined in

src/loader/parser/prefab/mats/shader/StandShader.ts:182

set specularColor(value): void

specularColor set reflectivity

Parameters

NameType
valueColor

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

NameType
valuenumber

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

NameType
valuenumber

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

NameType
valuenumber

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

NameType
valuenumber

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

NameType
valuenumber

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

NameType
valuenumber

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

NameType
valuenumber

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

NameType
valuenumber

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

Texture

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

NameType
valueTexture

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

Texture

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

NameType
valueTexture

Returns

void

Defined in

src/loader/parser/prefab/mats/shader/StandShader.ts:335


clearCoatRoughnessMap

get clearCoatRoughnessMap(): Texture

get clearCoatRoughnessMap

Returns

Texture

Defined in

src/loader/parser/prefab/mats/shader/StandShader.ts:364

set clearCoatRoughnessMap(value): void

set clearCoatRoughnessMap

Parameters

NameType
valueTexture

Returns

void

Defined in

src/loader/parser/prefab/mats/shader/StandShader.ts:353


brdfLUT

get brdfLUT(): Texture

get brdf query map

Returns

Texture

Defined in

src/loader/parser/prefab/mats/shader/StandShader.ts:371

set brdfLUT(value): void

set brdf query map

Parameters

NameType
valueTexture

Returns

void

Defined in

src/loader/parser/prefab/mats/shader/StandShader.ts:378


emissiveMap

get emissiveMap(): Texture

get emissive map

Returns

Texture

Defined in

src/loader/parser/prefab/mats/shader/StandShader.ts:386

set emissiveMap(value): void

set emissive map

Parameters

NameType
valueTexture

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

NameType
valuenumber

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

NameType
valuenumber

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

NameType
valuenumber

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

NameType
valuenumber

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

NameType
valuenumber

Returns

void

Defined in

src/loader/parser/prefab/mats/shader/StandShader.ts:465


clearcoatColor

get clearcoatColor(): Color

set the color of the clearcoat

Returns

Color

Defined in

src/loader/parser/prefab/mats/shader/StandShader.ts:488

set clearcoatColor(value): void

get the color of the clearcoat

Parameters

NameType
valueColor

Returns

void

Defined in

src/loader/parser/prefab/mats/shader/StandShader.ts:480

Methods

addRenderPass

addRenderPass(renderShader, index?): void

Parameters

NameTypeDefault value
renderShaderRenderShaderPassundefined
indexnumber-1

Returns

void

Inherited from

Shader.addRenderPass

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:28


removeShader

removeShader(renderShader, index?): void

Parameters

NameTypeDefault value
renderShaderRenderShaderPassundefined
indexnumber-1

Returns

void

Inherited from

Shader.removeShader

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:38


removeShaderByIndex

removeShaderByIndex(passType, index?): void

Parameters

NameTypeDefault value
passTypePassTypeundefined
indexnumber-1

Returns

void

Inherited from

Shader.removeShaderByIndex

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:52


getSubShaders

getSubShaders(passType): RenderShaderPass[]

Parameters

NameType
passTypePassType

Returns

RenderShaderPass[]

Inherited from

Shader.getSubShaders

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:63


hasSubShaders

hasSubShaders(passType): boolean

Parameters

NameType
passTypePassType

Returns

boolean

Inherited from

Shader.hasSubShaders

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:67


getDefaultShaders

getDefaultShaders(): RenderShaderPass[]

Returns

RenderShaderPass[]

Inherited from

Shader.getDefaultShaders

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:72


getDefaultColorShader

getDefaultColorShader(): RenderShaderPass

Returns

RenderShaderPass

Inherited from

Shader.getDefaultColorShader

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:76


setDefine

setDefine(arg0, arg1): void

Parameters

NameType
arg0string
arg1boolean

Returns

void

Inherited from

Shader.setDefine

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:80


hasDefine

hasDefine(arg0): boolean

Parameters

NameType
arg0string

Returns

boolean

Inherited from

Shader.hasDefine

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:88


deleteDefine

deleteDefine(arg0): void

Parameters

NameType
arg0string

Returns

void

Inherited from

Shader.deleteDefine

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:99


setUniform

setUniform(arg0, arg1): void

Parameters

NameType
arg0string
arg1any

Returns

void

Inherited from

Shader.setUniform

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:107


setUniformFloat

setUniformFloat(arg0, arg1): void

Parameters

NameType
arg0string
arg1number

Returns

void

Inherited from

Shader.setUniformFloat

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:115


setUniformVector2

setUniformVector2(arg0, arg1): void

Parameters

NameType
arg0string
arg1Vector2

Returns

void

Inherited from

Shader.setUniformVector2

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:123


setUniformVector3

setUniformVector3(arg0, arg1): void

Parameters

NameType
arg0string
arg1Vector3

Returns

void

Inherited from

Shader.setUniformVector3

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:131


setUniformVector4

setUniformVector4(arg0, arg1): void

Parameters

NameType
arg0string
arg1Vector4

Returns

void

Inherited from

Shader.setUniformVector4

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:139


setUniformColor

setUniformColor(arg0, arg1): void

Parameters

NameType
arg0string
arg1Color

Returns

void

Inherited from

Shader.setUniformColor

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:147


getUniform

getUniform(arg0): any

Parameters

NameType
arg0string

Returns

any

Inherited from

Shader.getUniform

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:155


getUniformFloat

getUniformFloat(arg0): number

Parameters

NameType
arg0string

Returns

number

Inherited from

Shader.getUniformFloat

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:159


getUniformVector2

getUniformVector2(arg0): Vector2

Parameters

NameType
arg0string

Returns

Vector2

Inherited from

Shader.getUniformVector2

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:163


getUniformVector3

getUniformVector3(arg0): Vector3

Parameters

NameType
arg0string

Returns

Vector3

Inherited from

Shader.getUniformVector3

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:167


getUniformVector4

getUniformVector4(arg0): Vector4

Parameters

NameType
arg0string

Returns

Vector4

Inherited from

Shader.getUniformVector4

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:171


getUniformColor

getUniformColor(arg0): Color

Parameters

NameType
arg0string

Returns

Color

Inherited from

Shader.getUniformColor

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:175


setTexture

setTexture(arg0, arg1): void

Parameters

NameType
arg0string
arg1Texture

Returns

void

Inherited from

Shader.setTexture

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:179


getTexture

getTexture(arg0): Texture

Parameters

NameType
arg0string

Returns

Texture

Inherited from

Shader.getTexture

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:188


setUniformBuffer

setUniformBuffer(arg0, arg1): void

Parameters

NameType
arg0string
arg1UniformGPUBuffer

Returns

void

Inherited from

Shader.setUniformBuffer

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:192


getUniformBuffer

getUniformBuffer(arg0): GPUBufferBase

Parameters

NameType
arg0string

Returns

GPUBufferBase

Inherited from

Shader.getUniformBuffer

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:200


setStorageBuffer

setStorageBuffer(arg0, arg1): void

Parameters

NameType
arg0string
arg1StorageGPUBuffer

Returns

void

Inherited from

Shader.setStorageBuffer

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:204


getStorageBuffer

getStorageBuffer(arg0): StorageGPUBuffer

Parameters

NameType
arg0string

Returns

StorageGPUBuffer

Inherited from

Shader.getStorageBuffer

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:212


setStructStorageBuffer

setStructStorageBuffer<T>(arg0, arg1): void

Type parameters

NameType
Textends Struct

Parameters

NameType
arg0string
arg1StructStorageGPUBuffer<T>

Returns

void

Inherited from

Shader.setStructStorageBuffer

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:216


getStructStorageBuffer

getStructStorageBuffer(arg0): GPUBufferBase

Parameters

NameType
arg0string

Returns

GPUBufferBase

Inherited from

Shader.getStructStorageBuffer

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:224


noticeValueChange

noticeValueChange(): void

Returns

void

Inherited from

Shader.noticeValueChange

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:228


destroy

destroy(): void

Returns

void

Inherited from

Shader.destroy

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:236


clone

clone(): Shader

Returns

Shader

Inherited from

Shader.clone

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:240


applyUniform

applyUniform(): void

Returns

void

Inherited from

Shader.applyUniform

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

Defined in

src/loader/parser/prefab/mats/shader/StandShader.ts:428

Released under the MIT License