File: MeshPhongNodeMaterial.md | Updated: 11/15/2025
Node material version of MeshPhongMaterial.
Constructs a new mesh lambert node material.
parameters | The configuration parameter.
---|---
This flag can be used for type testing.
Default is true.
Set to true because phong materials react on lights.
Default is true.
Overrides: NodeMaterial#lights
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.
If you don't want to overwrite the shininess but modify the existing value instead, use materialShininess.
Default is null.
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.
If you don't want to overwrite the specular color but modify the existing value instead, use materialSpecular.
Default is null.
Overwritten since this type of material uses BasicEnvironmentNode to implement the default environment mapping.
builder | The current node builder.
---|---
Overrides: NodeMaterial#setupEnvironment
Returns: The environment node.
Setups the lighting model.
Overrides: NodeMaterial#setupLightingModel
Returns: The lighting model.
Setups the phong specific node variables.
builder | The current node builder.
---|---
Overrides: NodeMaterial#setupVariants