materialSpecularIntensity
Provides the material's final specular highlight intensity, with built-in logic to multiply the `.specularIntensity` property by the `.specularMap` texture's alpha channel.
Core Advantages
Its core advantage is automatic combination: it fully encapsulates the common pattern of 'multiplying a base intensity by a map's alpha channel' and seamlessly integrates with standard material properties, greatly simplifying specular intensity control.
Common Uses
As a base intensity source for custom specular masks.
As an input factor for energy conservation calculations in custom lighting models.
Directly outputting its value as grayscale to debug the distribution of specular intensity.
As a threshold basis for creating hard-edged highlights in non-photorealistic rendering (NPR).
How to adjust
Configure by modifying `MeshStandardMaterial` properties in JavaScript. `.specularIntensity` (0-1) sets the base intensity. If `specularMap` is provided, the final intensity is `base_value * map_alpha_channel_value`, enabling localized intensity variations.
Code Examples
1// Conceptually, the final specular reflection is determined by both color and intensity
2const finalSpecular = materialSpecularColor.mul( materialSpecularIntensity );