Commit c4345812 authored by Jan Möbius's avatar Jan Möbius

Use uniform pool in sky dome

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free-Staging@17549 383ad7c9-94d9-4d36-a494-682f7c89f535
parent b19801b1
......@@ -341,12 +341,12 @@ getRenderObjects(ACG::IRenderer* _renderer, ACG::GLState& _state , const ACG::S
ro.setMaterial(&localMaterial);
ro.glDrawArrays(GL_QUADS, 0, 4);
ro.addUniformValue("uUpperCutOff" ,GL_FLOAT, dome_.topOffset() );
ro.addUniformValue("uHorizontalFOV" ,GL_FLOAT, dome_.horizontalFOV() );
ro.addUniformValue("uVerticalFOV" ,GL_FLOAT, dome_.verticalFOV() );
ro.setUniform("uUpperCutOff" , dome_.topOffset() );
ro.setUniform("uHorizontalFOV" , dome_.horizontalFOV() );
ro.setUniform("uVerticalFOV" , dome_.verticalFOV() );
ro.addUniformValue("uVP_width" ,GL_FLOAT, float(_state.viewport_width()) );
ro.addUniformValue("uVP_height" ,GL_FLOAT, float(_state.viewport_height()) );
ro.setUniform("uVP_width" , float(_state.viewport_width()) );
ro.setUniform("uVP_height" , float(_state.viewport_height()) );
_renderer->addRenderObject(&ro);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment