Two sided rendering, while using dynmat.

--HG--
branch : gsoc2013-dfighter
hg/feature/gsoc2013-dfighter
dfighter1985 11 years ago
parent 390d1bb156
commit 69a4a9f9a5

@ -624,6 +624,11 @@ bool CDriverGL3::setupDynMatPass( uint pass )
if( !setupDynMatProgram( *_CurrentMaterial, pass ) )
return false;
if( ( _CurrentMaterial->getFlags() & IDRV_MAT_DOUBLE_SIDED ) != 0 )
_DriverGLStates.enableCullFace( false );
else
_DriverGLStates.enableCullFace( true );
CDynMaterial *m = _CurrentMaterial->getDynMat();
SRenderPass *p = m->getPass( pass );

Loading…
Cancel
Save