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