Commit a54c0610 authored by Alexander Wiebel's avatar Alexander Wiebel
Browse files

[STYLE #42] line was too long

parent 5f6d4824
......@@ -288,7 +288,8 @@ void WMSurfaceIllustrator::renderMesh( boost::shared_ptr< WTriangleMesh > mesh )
geode->getOrCreateStateSet()->addUniform( new WGEPropertyUniform< WPropDouble >( "u_parameterCenter", m_parameterCenter ) );
geode->getOrCreateStateSet()->addUniform( new WGEPropertyUniform< WPropDouble >( "u_parameterWidth", m_parameterWidth ) );
WItemSelector illustrationModeSelector = m_illustrationMode->get( true );
geode->getOrCreateStateSet()->addUniform( new osg::Uniform( "u_renderingType", static_cast<int>( illustrationModeSelector.getItemIndexOfSelected( 0 ) ) ) );
int illustrationTypeId = static_cast<int>( illustrationModeSelector.getItemIndexOfSelected( 0 ) );
geode->getOrCreateStateSet()->addUniform( new osg::Uniform( "u_renderingType", illustrationTypeId ) );
// apply shader only to mesh
m_shader->apply( geode );
......
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