Inheritance: LightingModel → BasicLightingModel →
Represents the lighting model for a phong material. Used in MeshPhongNodeMaterial.
Constructs a new phong lighting model.
specular
Whether specular is supported or not.
Default is true.
Whether specular is supported or not. Set this to false if you are looking for a Lambert-like material meaning a material for non-shiny surfaces, without specular highlights.
Default is true.
Implements the direct lighting. The specular portion is optional an can be controlled with the PhongLightingModel#specular flag.
lightData
The light data.
Overrides: BasicLightingModel#direct
Implements the indirect lighting.
builder
The current node builder.
Overrides: BasicLightingModel#indirect