mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-21 20:35:35 +00:00
Merge pull request #940 from BeamNG/add_opengl_support
Add/Activate OpenGL render.
This commit is contained in:
commit
98e3651db5
55 changed files with 2958 additions and 803 deletions
|
|
@ -81,13 +81,13 @@ MaterialManager::MaterialManager()
|
|||
Con::addVariableNotify( "$pref::Video::defaultAnisotropy", callabck );
|
||||
|
||||
Con::NotifyDelegate callabck2( this, &MaterialManager::_onDisableMaterialFeature );
|
||||
Con::setVariable( "$pref::Video::disableNormalMapping", false );
|
||||
Con::setVariable( "$pref::Video::disableNormalMapping", "false" );
|
||||
Con::addVariableNotify( "$pref::Video::disableNormalMapping", callabck2 );
|
||||
Con::setVariable( "$pref::Video::disablePixSpecular", false );
|
||||
Con::setVariable( "$pref::Video::disablePixSpecular", "false" );
|
||||
Con::addVariableNotify( "$pref::Video::disablePixSpecular", callabck2 );
|
||||
Con::setVariable( "$pref::Video::disableCubemapping", false );
|
||||
Con::setVariable( "$pref::Video::disableCubemapping", "false" );
|
||||
Con::addVariableNotify( "$pref::Video::disableCubemapping", callabck2 );
|
||||
Con::setVariable( "$pref::Video::disableParallaxMapping", false );
|
||||
Con::setVariable( "$pref::Video::disableParallaxMapping", "false" );
|
||||
Con::addVariableNotify( "$pref::Video::disableParallaxMapping", callabck2 );
|
||||
}
|
||||
|
||||
|
|
@ -416,6 +416,9 @@ void MaterialManager::recalcFeaturesFromPrefs()
|
|||
mExclusionFeatures.setFeature( MFT_NormalMap,
|
||||
Con::getBoolVariable( "$pref::Video::disableNormalMapping", false ) );
|
||||
|
||||
mExclusionFeatures.setFeature( MFT_SpecularMap,
|
||||
Con::getBoolVariable( "$pref::Video::disablePixSpecular", false ) );
|
||||
|
||||
mExclusionFeatures.setFeature( MFT_PixSpecular,
|
||||
Con::getBoolVariable( "$pref::Video::disablePixSpecular", false ) );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue