specularColor
specularColor
Provides access to the material's specular color, which defines the color of the highlight and is key to distinguishing metals from non-metals.
Core Advantages
Seamlessly integrates with the `material.specular` property, allowing direct control over highlight color from JavaScript without manual uniform management.
Common Uses
Simulating polished metals (e.g., gold with a yellow highlight)
Creating non-metals like plastic or ceramic (grayscale highlight)
Achieving stylized effects with artistic highlight colors
How to adjust
This node is read-only. Its value is controlled by setting the `material.specular` property (a `THREE.Color`) in JavaScript. A colored specular is typically used for metals, while a grayscale value is used for non-metals.
Code Examples
1// Read the material's specular color and use it to add a faint emissive glow
2material.emissiveNode = specularColor.mul( 0.1 );