float4 globalSH[7];
CBUFFER_END
CBUFFER_START(FastBatch_PerObjectData : register(b0) )
CBUFFER_START(UniformBuffer_FastBatch : register(b1) )
float4 myColor;
Material mat = Instantiate(m_Material);
Color oColor = new Color(Random.value, Random.value, Random.value, 1.0f);
mat.SetColor("myColor", oColor);
mat.InitUniformBuffers();
renderer.material = mat;
}
iIndex++;