Skip to content

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 ​

ParameterType
cPick<MeshColorInputs, "source" | "alpha" | "linear">

Returns ​

boolean

Released under the MIT License.