Capítulo 131 de 859
Represents the lighting model for a PBR material.
Constructor
| Signature |
|---|
new PhysicalLightingModel( clearcoat : boolean, sheen : boolean, iridescence : boolean, anisotropy : boolean, transmission : boolean, dispersion : boolean ) |
Properties
| Property | Description |
|---|---|
.anisotropy : boolean | Whether anisotropy is supported or not. |
.clearcoat : boolean | Whether clearcoat is supported or not. |
.clearcoatRadiance : Node | The clear coat radiance. |
.clearcoatSpecularDirect : Node | The clear coat specular direct. |
.clearcoatSpecularIndirect : Node | The clear coat specular indirect. |
.dispersion : boolean | Whether dispersion is supported or not. |
.iridescence : boolean | Whether iridescence is supported or not. |
.iridescenceF0 : Node | The iridescence F0. |
.iridescenceF0Dielectric : Node | The iridescence F0 dielectric. |
.iridescenceF0Metallic : Node | The iridescence F0 metallic. |
.iridescenceFresnel : Node | The iridescence Fresnel. |
.sheen : boolean | Whether sheen is supported or not. |
.sheenSpecularDirect : Node | The sheen specular direct. |
.sheenSpecularIndirect : Node | The sheen specular indirect. |
.transmission : boolean | Whether transmission is supported or not. |
Methods
| Method | Description |
|---|---|
.ambientOcclusion( builder : NodeBuilder ) | Implements the ambient occlusion term. |
.direct( lightData : Object, builder : NodeBuilder ) | Implements the direct light. |
.directRectArea( input : Object, builder : NodeBuilder ) | This method is intended for implementing the direct light term for rect area light nodes. |
.finish( builder : NodeBuilder ) | Used for final lighting accumulations depending on the requested features. |
.indirect( builder : NodeBuilder ) | Implements the indirect lighting. |
.indirectDiffuse( builder : NodeBuilder ) | Implements the indirect diffuse term. |
.indirectSpecular( builder : NodeBuilder ) | Implements the indirect specular term. |
.start( builder : NodeBuilder ) | Depending on what features are requested, the method prepares certain node variables which are later used for lighting computations. |