Skip to content

Documentation / scene / IMixinPBRSpecularGlossiness

Type Alias: IMixinPBRSpecularGlossiness

IMixinPBRSpecularGlossiness = object & IMixinPBRCommon & IMixinLight & TextureMixinInstanceTypes<["specular"]>

Defined in: libs/scene/src/material/mixins/lightmodel/pbrspecularglossness.ts:20

Interface for PBRSpecularGlossiness mixin

Type Declaration

specularFactor

specularFactor: Vector3

glossinessFactor

glossinessFactor: number

PBRLight()

PBRLight(scope, worldPos, normal, viewVec, albedo, TBN, outRoughness?): PBShaderExp

Parameters

scope

PBInsideFunctionScope

worldPos

PBShaderExp

normal

PBShaderExp

viewVec

PBShaderExp

albedo

PBShaderExp

TBN

PBShaderExp

outRoughness?

PBShaderExp

Returns

PBShaderExp

calculateCommonData()

calculateCommonData(scope, albedo, viewVec, TBN, data): void

Parameters

scope

PBInsideFunctionScope

albedo

PBShaderExp

viewVec

PBShaderExp

TBN

PBShaderExp

data

PBShaderExp

Returns

void

Released under the MIT License.