Пример #1
0
 public void ApplyGlobalContants()
 {
     CameraConstant.Set(Camera); LightDirectionConstant.Set(LightDirection); LightDirection2Constant.Set(LightDirection2); LightColorConstant.Set(LightColor); LightColor2Constant.Set(LightColor2);
 }
Пример #2
0
        public void Apply(InstanceObjectMesh instanceObjectMesh)
        {
            CameraConstant.Set(Camera); LightDirectionConstant.Set(LightDirection); LightDirection2Constant.Set(LightDirection2); LightColorConstant.Set(LightColor); LightColor2Constant.Set(LightColor2);
            ApplyInstanceContants(instanceObjectMesh);

            Shader.Apply();
        }