MultiMesh.CustomDataFormat/customDataFormat - multiple declarations

Function MultiMesh.customDataFormat

Format of custom data in custom data array that gets passed to shader.

MultiMesh.CustomDataFormat customDataFormat() nothrow @property @nogc;

void customDataFormat (
  long v
) nothrow @property @nogc;

Enum MultiMesh.CustomDataFormat

enum CustomDataFormat : int { ... }

Enum members

NameDescription
customData8bit 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.
customDataFloat The Color passed into setInstanceCustomData will use 4 floats. Use this for highest precision.
customDataNone Use when you are not using per-instance custom data.