protected ShaderProgram InitializeShader() { var vertexShaderSource = ManifestResourceLoader.LoadTextFile(@"DemoHexahedron1Element.vert"); var fragmentShaderSource = ManifestResourceLoader.LoadTextFile(@"DemoHexahedron1Element.frag"); var shaderProgram = new ShaderProgram(); shaderProgram.Create(vertexShaderSource, fragmentShaderSource, null); this.in_PositionLocation = shaderProgram.GetAttributeLocation(strin_Position); this.in_ColorLocation = shaderProgram.GetAttributeLocation(strin_Color); this.renderWireframeLocation = shaderProgram.GetUniformLocation("renderWirframe"); return shaderProgram; }