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

Set the new uniforms for the shaders

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free-Staging@16397 383ad7c9-94d9-4d36-a494-682f7c89f535
parent bbb2c17b
......@@ -328,9 +328,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,QVariant(0.1) );
ro.addUniformValue("uFOV" ,GL_FLOAT,QVariant(360) );
ro.addUniformValue("uUpperCutOff" ,GL_FLOAT, dome_.topOffset() );
ro.addUniformValue("uHorizontalFOV" ,GL_FLOAT, dome_.horizontalFOV() );
ro.addUniformValue("uVerticalFOV" ,GL_FLOAT, dome_.verticalFOV() );
ro.addUniformValue("uVP_width" ,GL_FLOAT, float(_state.viewport_width()) );
ro.addUniformValue("uVP_height" ,GL_FLOAT, 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