MeshBasicNodeMaterial
MeshBasicNodeMaterial
An unlit basic mesh node material not affected by scene direct lights. Final color comes from inputs like colorNode or map, with optional environment and light-map support. It is the node variant of MeshBasicMaterial.
Core Advantages
Low cost and node-driven. Ignores direct lights yet works with envMap and lightMap. Good for UI, wireframes, and stylized objects.
Common Uses
Render objects unaffected by lighting
Build in‑scene UI elements
Wireframe rendering
Simple NPR or stylized looks
Geometry debugging/visualization
How to adjust
Use color for a constant tint, or connect texture/procedural nodes to colorNode. Set envMap and lightMap if needed; enable wireframe for line art.
Code Examples
1<Canvas>
2 <mesh>
3 <sphereGeometry args={[0.4, 128, 128]} />
4 {/* Node-driven color */}
5 <meshBasicNodeMaterial colorNode={color(1, 0, 0)} />
6 </mesh>
7</Canvas>