Skip to content

Documentation / scene / IMixinLambert

Type Alias: IMixinLambert ​

IMixinLambert = object & IMixinLight

Defined in: libs/scene/src/material/mixins/lightmodel/lambert.ts:12

Interface of lambert lighting model mixin

Type Declaration ​

lambertLight() ​

lambertLight(scope, worldPos, normal, albedo, geometricNormal?): PBShaderExp

Parameters ​

scope ​

PBInsideFunctionScope

worldPos ​

PBShaderExp

normal ​

PBShaderExp

albedo ​

PBShaderExp

geometricNormal? ​

PBShaderExp

Interpolated vertex normal, used for shadow normal offset bias. Defaults to normal; pass the pre-normal-map normal (such as TBN[2]) when the material has one, so the shadow lookup is not displaced along normal map detail.

Returns ​

PBShaderExp

Released under the MIT License.