Commit 562f69cc by Sebastian Eichelbaum

[FIX] - superquadrics could not find their shaders anymore. This is fixed now.

parent d44c71df
......@@ -45,7 +45,6 @@ W_LOADABLE_MODULE( WMSuperquadricGlyphs )
WMSuperquadricGlyphs::WMSuperquadricGlyphs():
WModule()
{
m_shader = osg::ref_ptr< WShader > ( new WShader( "WMSuperquadricGlyphs", m_localPath ) );
m_output = osg::ref_ptr< WGEGroupNode > ( new WGEGroupNode() );
}
......@@ -407,6 +406,7 @@ void WMSuperquadricGlyphs::moduleMain()
WKernel::getRunningKernel()->getGraphicsEngine()->getScene()->insert( m_output );
// add shader
m_shader = osg::ref_ptr< WShader > ( new WShader( "WMSuperquadricGlyphs", m_localPath ) );
m_shader->apply( m_output );
// set uniform callbacks and uniforms
......
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