Skip to content

Documentation / scene / IMixinPBRMetallicRoughness

Type Alias: IMixinPBRMetallicRoughness

IMixinPBRMetallicRoughness = object & IMixinPBRCommon & IMixinLight & TextureMixinInstanceTypes<["metallicRoughness", "occlusion", "specular", "specularColor", "anisotropyDirection"]>

Defined in: libs/scene/src/material/mixins/lightmodel/pbrmetallicroughness.ts:38

Interface for PBRMetallicRoughness lighting model mixin

Type Declaration

metallic

metallic: number

roughness

roughness: number

specularFactor

specularFactor: Vector4

reflectionMode

reflectionMode: PBRReflectionMode

anisotropy

anisotropy: number

anisotropyDirection

anisotropyDirection: number

anisotropyDirectionScaleBias

anisotropyDirectionScaleBias: Vector2

PBRLight()

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

Parameters

scope

PBInsideFunctionScope

worldPos

PBShaderExp

normal

PBShaderExp

viewVec

PBShaderExp

albedo

PBShaderExp

TBN

PBShaderExp

outRoughness?

PBShaderExp

outSSSDiffuse?

PBShaderExp

outSSSTransmission?

PBShaderExp

Returns

PBShaderExp

calculateMetallic()

calculateMetallic(scope, albedo, normal): PBShaderExp

Parameters

scope

PBInsideFunctionScope

albedo

PBShaderExp

normal

PBShaderExp

Returns

PBShaderExp

calculateRoughness()

calculateRoughness(scope, albedo, normal): PBShaderExp

Parameters

scope

PBInsideFunctionScope

albedo

PBShaderExp

normal

PBShaderExp

Returns

PBShaderExp

calculateSpecularFactor()

calculateSpecularFactor(scope, albedo, normal): PBShaderExp

Parameters

scope

PBInsideFunctionScope

albedo

PBShaderExp

normal

PBShaderExp

Returns

PBShaderExp

calculateCommonData()

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

Parameters

scope

PBInsideFunctionScope

albedo

PBShaderExp

normal

PBShaderExp

viewVec

PBShaderExp

TBN

PBShaderExp

data

PBShaderExp

Returns

void

Released under the MIT License.