File: MeshBasicNodeMaterial.md | Updated: 11/15/2025
Node material version of MeshBasicMaterial.
Constructs a new mesh basic node material.
parameters | The configuration parameter.
---|---
This flag can be used for type testing.
Default is true.
Although the basic material is by definition unlit, we set this property to true since we use a lighting model to compute the outgoing light of the fragment shader.
Default is true.
Overrides: NodeMaterial#lights
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.
This method must be overwritten since light maps are evaluated with a special scaling factor for basic materials.
builder | The current node builder.
---|---
Overrides: NodeMaterial#setupLightMap
Returns: The light map node.
Setups the lighting model.
Overrides: NodeMaterial#setupLightingModel
Returns: The lighting model.
Basic materials are not affected by normal and bump maps so we return by default normalViewGeometry.
Overrides: NodeMaterial#setupNormal
Returns: The normal node.
The material overwrites this method because lights is set to true but we still want to return the diffuse color as the outgoing light.
Overrides: NodeMaterial#setupOutgoingLight
Returns: The outgoing light node.