Represents the lighting model for a PBR material.
Constructor
new PhysicalLightingModel(clearcoat?, sheen?, iridescence?, anisotropy?, transmission?, dispersion?, retroreflection?)| Parameter | Type | Default Value |
|---|---|---|
| clearcoat? | boolean | false |
| sheen? | boolean | false |
| iridescence? | boolean | false |
| anisotropy? | boolean | false |
| transmission? | boolean | false |
| dispersion? | boolean | false |
| retroreflection? | boolean | false |
Constructs a new physical lighting model.
Properties
| Property | Type | Default Value | |
|---|---|---|---|
| clearcoat | boolean | — | |
| sheen | boolean | — | |
| iridescence | boolean | — | |
| anisotropy | boolean | — | |
| transmission | boolean | — | |
| dispersion | boolean | — | |
| retroreflection | boolean | — | |
| clearcoatRadiance | null | Node | — | |
| clearcoatSpecularDirect | null | Node | — | |
| clearcoatSpecularIndirect | null | Node | — | |
| sheenSpecularDirect | null | Node | — | |
| sheenSpecularIndirect | null | Node | — | |
| iridescenceFresnel | null | Node | — | |
| iridescenceF0Dielectric | null | Node | — | |
| iridescenceF0Metallic | null | Node | — | |
| dfg | null | Node | — | |
| multiScatteringCompensation | null | Node | — | |
| Method | Type | |
|---|---|---|
| start | (builder: NodeBuilder) => void | |
| computeMultiscattering | (singleScatter: any, multiScatter: any, specularF90: any, f0: any, iridescenceF0?: null) => void | |
| direct | ({ lightDirection, lightColor, reflectedLight }: Object) => void | |
| directRectArea | ({ lightColor, lightPosition, halfWidth, halfHeight, reflectedLight, ltc_1, ltc_2 }: Object) => void | |
| indirect | (builder: NodeBuilder) => void | |
| indirectDiffuse | (builder: NodeBuilder) => void | |
| indirectSpecular | (builder: NodeBuilder) => void | |
| ambientOcclusion | (builder: NodeBuilder) => void | |
| finish | ({ context }: NodeBuilder) => void | |
Extends
LightingModel