Skip to content

packColor

packColor(rgb, alpha, additive?): number

A tint and an alpha as the GPU wants them: premultiplied RGBA in one 32-bit word (little-endian byte order R, G, B, A, as an UNSIGNED_BYTE vec4 attribute reads it). additive: alpha 0, so ONE / ONE_MINUS_SRC_ALPHA blending adds.

number

number

boolean

number