Esempio n. 1
0
 public void Add(Shader shader)
 {
     _uniformCache.Clear();
     switch (shader.Type)
     {
         case ShaderType.VertexShader:
             _vertexShader = shader;
             break;
         case ShaderType.FragmentShader:
             _fragmentShader = shader;
             break;
         default:
             throw new Exception("Tride to add wrong shader type!");
     }
 }
 private bool Add(string name, Shader shader)
 {
     return Shaders.TryAdd(name, shader);
 }