//! Initialises the OpenGL ShaderWrapper for coloured objects protected void InitialiseStandardColouredShaderWrapper() { var shader_standard_solid = d_shaderManager.GetShader(OpenGLBaseShaderID.StandardSolid); d_shaderWrapperSolid = new OpenGLBaseShaderWrapper(shader_standard_solid, d_openGLStateChanger); d_shaderWrapperSolid.AddUniformVariable("modelViewProjMatrix"); d_shaderWrapperSolid.AddUniformVariable("alphaFactor"); d_shaderWrapperSolid.AddAttributeVariable("inPosition"); d_shaderWrapperSolid.AddAttributeVariable("inColour"); }
//! Initialises the OpenGL ShaderWrapper for textured objects protected void InitialiseStandardTexturedShaderWrapper() { var shaderStandardTextured = d_shaderManager.GetShader(OpenGLBaseShaderID.StandardTextured); d_shaderWrapperTextured = new OpenGLBaseShaderWrapper(shaderStandardTextured, d_openGLStateChanger); d_shaderWrapperTextured.AddTextureUniformVariable("texture0", 0); d_shaderWrapperTextured.AddUniformVariable("modelViewProjMatrix"); d_shaderWrapperTextured.AddUniformVariable("alphaFactor"); d_shaderWrapperTextured.AddAttributeVariable("inPosition"); d_shaderWrapperTextured.AddAttributeVariable("inTexCoord"); d_shaderWrapperTextured.AddAttributeVariable("inColour"); }