Ejemplo n.º 1
0
        public Shader(string vertexRes, string fragmentRes)
        {
            uint vert = GraphicsLayer.compileShader(GraphicsLayer.GLShaderType.VertexShader, SpreadApplication.LoadTextFileResource(vertexRes));
            uint frag = GraphicsLayer.compileShader(GraphicsLayer.GLShaderType.FragmentShader, SpreadApplication.LoadTextFileResource(fragmentRes));

            program = GraphicsLayer.createVisualShader(vert, frag);
            GraphicsLayer.linkVisualShader(program);
        }