Capítulo 130 de 859
Represents the lighting model for a phong material. Used in MeshPhongNodeMaterial.
false if you are looking for a Lambert-like material meaning a material for non-shiny s…Constructor
| Signature |
|---|
new PhongLightingModel( specular : boolean ) |
Properties
| Property | Description |
|---|---|
.specular : boolean | 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. |
Methods
| Method | Description |
|---|---|
.direct( lightData : Object ) | Implements the direct lighting. The specular portion is optional an can be controlled with the PhongLightingModel#specular flag. |
.indirect( builder : NodeBuilder ) | Implements the indirect lighting. |