Exemple #1
0
        private static Shader CreateShader(List <VertexAttributeRenderInfo> attributes)
        {
            VertexAttributeShaderGenerator.CreateShader(attributes, out string vertSource, out string fragSource);
            Shader shader = new Shader();

            shader.LoadShaders(vertSource, fragSource);
            return(shader);
        }
        private static Shader CreateShader(List <ShaderAttribute> attributes)
        {
            var generator = new VertexAttributeShaderGenerator();

            generator.CreateShader(attributes, out string vertSource, out string fragSource);
            Shader shader = new Shader();

            shader.LoadShaders(vertSource, fragSource);
            return(shader);
        }