Esempio n. 1
0
        public void Apply(InstanceObjectMesh instanceObjectMesh)
        {
            CameraConstant.Set(Camera); LightDirectionConstant.Set(LightDirection); LightColorConstant.Set(LightColor);
            ApplyInstanceContants(instanceObjectMesh);

            Shader.Apply();
        }
Esempio n. 2
0
 public void ApplyGlobalContants()
 {
     CameraConstant.Set(Camera); LightDirectionConstant.Set(LightDirection); LightColorConstant.Set(LightColor);
 }