Creates a new StateMaterial instance.
The Three.js material or array of materials to manage
Gets the current material.
The managed Three.js material or array of materials
Sets the material and updates internal alpha values.
The Three.js material or array of materials to set
An opacity management class for Three.js materials in interactive states.
Description
StateMaterial manages the opacity of Three.js Material objects for interactive states. It preserves the original opacity values of materials and enables synchronized opacity control across multiple materials through StateMaterialSet, allowing coordinated transparency animations for all interactive states.
Remarks
Example
See
StateMaterialSet - Container class that manages multiple StateMaterial instances