private boolean setupShaderProgram( GL gl ) { this.shaderProgram = new ShaderProgram(); int vertShaderId = shaderProgram.createVertexShader( gl, createVertexShader() ); int fragShaderId = shaderProgram.createFragmentShader( gl, createFragmentShader( 1 ) ); if ( !shaderProgram.attachShader( gl, vertShaderId ) ) { // rb: unable to attach the given shader id, ignoring. LOG.warn( "Could not attach the vertex part to the color map shader program, ignoring color map." ); return false; } if ( !shaderProgram.attachShader( gl, fragShaderId ) ) { LOG.warn( "Could not attach the fragment part to the color map shader program, ignoring color map." ); return false; } if ( !shaderProgram.linkProgram( gl ) ) { LOG.warn( "Could not link the shaders to the color map shader program, ignoring color map." ); return false; } return true; }