public SetMultiplyColor ( int instanceId, System.Vector4 color, bool noUpload = false ) : void | ||
instanceId | int | |
color | System.Vector4 | |
noUpload | bool | |
return | void |
public void SetMultiplyColor(int instanceId, Vector4 color, bool noUpload = false)
{
multiplyColorData[instanceId * 4] = color.X;
multiplyColorData[instanceId * 4 + 1] = color.Y;
multiplyColorData[instanceId * 4 + 2] = color.Z;
multiplyColorData[instanceId * 4 + 3] = color.W;
if (!noUpload)
UpdateFloatBuffer(multiplyColorBuffer, new float[] { color.X, color.Y, color.Z, color.W }, instanceId * 4);
}