Capítulo 131 de 859

Chapter 131: PhysicalLightingModel

Core Idea

Represents the lighting model for a PBR material.

Key Concepts

  • 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.

Reference Tables

Constructor

Signature
new PhysicalLightingModel( clearcoat : boolean, sheen : boolean, iridescence : boolean, anisotropy : boolean, transmission : boolean, dispersion : boolean )

Properties

PropertyDescription
.anisotropy : booleanWhether anisotropy is supported or not.
.clearcoat : booleanWhether clearcoat is supported or not.
.clearcoatRadiance : NodeThe clear coat radiance.
.clearcoatSpecularDirect : NodeThe clear coat specular direct.
.clearcoatSpecularIndirect : NodeThe clear coat specular indirect.
.dispersion : booleanWhether dispersion is supported or not.
.iridescence : booleanWhether iridescence is supported or not.
.iridescenceF0 : NodeThe iridescence F0.
.iridescenceF0Dielectric : NodeThe iridescence F0 dielectric.
.iridescenceF0Metallic : NodeThe iridescence F0 metallic.
.iridescenceFresnel : NodeThe iridescence Fresnel.
.sheen : booleanWhether sheen is supported or not.
.sheenSpecularDirect : NodeThe sheen specular direct.
.sheenSpecularIndirect : NodeThe sheen specular indirect.
.transmission : booleanWhether transmission is supported or not.

Methods

MethodDescription
.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.

Key Takeaways

  1. PhysicalLightingModel extends: LightingModel
  2. Most relevant properties: anisotropy, clearcoat, clearcoatRadiance, clearcoatSpecularDirect.
  3. Key methods: ambientOcclusion, direct, directRectArea, finish.

Connects To