Documentation / scene / IMixinPBRBluePrint
Type Alias: IMixinPBRBluePrint
IMixinPBRBluePrint =
object&IMixinPBRBRDF&IMixinLight
Defined in: libs/scene/src/material/mixins/lightmodel/pbrblueprintmixin.ts:26
Interface for mixinPBRBluePrint lighting model mixin
Type Declaration
PBRLight()
PBRLight(
scope,worldPos,viewVec,commonData,outRoughness?,outSSSDiffuse?):PBShaderExp
Parameters
scope
PBInsideFunctionScope
worldPos
PBShaderExp
viewVec
PBShaderExp
commonData
PBShaderExp
outRoughness?
PBShaderExp
outSSSDiffuse?
PBShaderExp
Returns
PBShaderExp
getCommonDatasStruct()
getCommonDatasStruct(
scope):ShaderTypeFunc
Parameters
scope
PBInsideFunctionScope
Returns
ShaderTypeFunc
getCommonData()
getCommonData(
scope,data,viewVec,worldPos,worldNorm,worldTangent,worldBinormal,vertexColor,vertexUV,ir):void
Parameters
scope
PBInsideFunctionScope
data
PBShaderExp
viewVec
PBShaderExp
worldPos
PBShaderExp
worldNorm
PBShaderExp
worldTangent
PBShaderExp
worldBinormal
PBShaderExp
vertexColor
PBShaderExp
vertexUV
PBShaderExp
ir
Returns
void
calculateCommonData()
calculateCommonData(
scope,ir,viewVec,worldPos,worldNorm,worldTangent,worldBinormal,vertexColor,vertexUV,data):void
Parameters
scope
PBInsideFunctionScope
ir
viewVec
PBShaderExp
worldPos
PBShaderExp
worldNorm
PBShaderExp
worldTangent
PBShaderExp
worldBinormal
PBShaderExp
vertexColor
PBShaderExp
vertexUV
PBShaderExp
data
PBShaderExp
Returns
void
directLighting()
directLighting(
scope,lightDir,lightColor,viewVec,commonData,diffuseScale,specularScale,sourceRadiusFactor,outColor,outDiffuseColor?):void
Parameters
scope
PBInsideFunctionScope
lightDir
PBShaderExp
lightColor
PBShaderExp
viewVec
PBShaderExp
commonData
PBShaderExp
diffuseScale
PBShaderExp
specularScale
PBShaderExp
sourceRadiusFactor
PBShaderExp
outColor
PBShaderExp
outDiffuseColor?
PBShaderExp
Returns
void
indirectLighting()
indirectLighting(
scope,viewVec,commonData,outColor,outRoughness?,outDiffuseColor?):void
Parameters
scope
PBInsideFunctionScope
viewVec
PBShaderExp
commonData
PBShaderExp
outColor
PBShaderExp
outRoughness?
PBShaderExp
outDiffuseColor?
PBShaderExp
Returns
void