Esempio n. 1
0
        public ColorShaderProgram(String vertexShaderResource, String fragmentShaderResource)
        {
            program = ShaderHelper.buildProgram(vertexShaderResource, fragmentShaderResource);

            vPosition = GL.GetAttribLocation(program, V_POSITION);
            vColor    = GL.GetAttribLocation(program, V_COLOR);
            modelView = GL.GetUniformLocation(program, MODEL_VIEW);
        }