MultiMesh.CustomDataFormat

Values

ValueMeaning
customDataNone0

Use when you are not using per-instance custom data.

customData8bit1

Compress custom_data into 8 bits when passing to shader. This uses less memory and can be faster, but loses precision and range. Floats packed into 8 bits can only represent values between 0 and 1, numbers outside that range will be clamped.

customDataFloat2

The Color passed into setInstanceCustomData will use 4 floats. Use this for highest precision.

Meta