예제 #1
0
        protected Shader()
        {
            ShaderProgram = GLShaderProgram.Create(GLShader.CreateVertex(VertexShaderSource), GLShader.CreateFragment(FragmentShaderSource), GLShader.CreateGeometry(GeometryShaderSource));

            if (ShaderProgram is not null)
            {
                InitializeUniforms();
                InitializeAttributes();
            }
        }