Function: needsColorAttribute()
ts
function needsColorAttribute(c): boolean;Experimental
Whether the drawn items need a per-item color attribute: always for per-vertex / per-face colors and for intensity mapped on the CPU (three.js materials); for one color, or intensity in the shader, only to carry per-vertex alpha.
Parameters
| Parameter | Type |
|---|---|
c | Pick<MeshColorInputs, "source" | "alpha" | "linear"> |
Returns
boolean