Capítulo 78 de 859
Node material version of MeshPhongMaterial.
true because phong materials react on lights.shininess property. This node property allows to overwrite the default a…specular property. This node property allows to overwrite the defau…Constructor
| Signature |
|---|
new MeshPhongNodeMaterial( parameters : Object ) |
Properties
| Property | Description |
|---|---|
.isMeshPhongNodeMaterial : boolean (readonly) | This flag can be used for type testing. |
.lights : boolean | Set to true because phong materials react on lights. |
.shininessNode : Node.<float> | The shininess of phong materials is by default inferred from the shininess property. This node property allows to overwrite the default and define the shininess with a node instead. |
.specularNode : Node.<vec3> | The specular color of phong materials is by default inferred from the specular property. This node property allows to overwrite the default and define the specular color with a node instead. |
Methods
| Method | Description |
|---|---|
.setupEnvironment( builder : NodeBuilder ) : BasicEnvironmentNode.<vec3> | Overwritten since this type of material uses BasicEnvironmentNode to implement the default environment mapping. |
.setupLightingModel() : PhongLightingModel | Setups the lighting model. |
.setupVariants( builder : NodeBuilder ) | Setups the phong specific node variables. |