Skip to content

Documentation / scene / IMixinBlinnPhong

Type Alias: IMixinBlinnPhong

IMixinBlinnPhong = object & IMixinLight

Defined in: libs/scene/src/material/mixins/lightmodel/blinnphong.ts:16

Interface for blinn-phong lighting model mixin

Type Declaration

shininess

shininess: number

scatterWrap

scatterWrap: number

scatterWidth

scatterWidth: number

scatterColor

scatterColor: Vector4

blinnPhongLight()

blinnPhongLight(scope, worldPos, normal, viewVec, albedo, outRoughness?, geometricNormal?): PBShaderExp

Parameters

scope

PBInsideFunctionScope

worldPos

PBShaderExp

normal

PBShaderExp

viewVec

PBShaderExp

albedo

PBShaderExp

outRoughness?

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.