public void Apply(InstanceObjectMesh instanceObjectMesh) { CameraConstant.Set(Camera); LightDirectionConstant.Set(LightDirection); LightColorConstant.Set(LightColor); ApplyInstanceContants(instanceObjectMesh); Shader.Apply(); }
public void ApplyGlobalContants() { CameraConstant.Set(Camera); LightDirectionConstant.Set(LightDirection); LightColorConstant.Set(LightColor); }