mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Separate OpenGL code from Linux or Mac.
This commit is contained in:
parent
c354f59b72
commit
7f183ef9e5
2 changed files with 8 additions and 8 deletions
|
|
@ -47,8 +47,7 @@
|
|||
#include "lighting/basic/blTerrainSystem.h"
|
||||
#include "lighting/common/projectedShadow.h"
|
||||
|
||||
|
||||
#if defined( TORQUE_OS_MAC ) || defined( TORQUE_OS_LINUX )
|
||||
#if defined( TORQUE_OPENGL )
|
||||
#include "shaderGen/GLSL/shaderFeatureGLSL.h"
|
||||
#include "shaderGen/GLSL/bumpGLSL.h"
|
||||
#include "shaderGen/GLSL/pixSpecularGLSL.h"
|
||||
|
|
@ -163,7 +162,7 @@ void BasicLightManager::activate( SceneManager *sceneManager )
|
|||
|
||||
if( GFX->getAdapterType() == OpenGL )
|
||||
{
|
||||
#if defined( TORQUE_OS_MAC ) || defined( TORQUE_OS_LINUX )
|
||||
#if defined( TORQUE_OPENGL )
|
||||
FEATUREMGR->registerFeature( MFT_LightMap, new LightmapFeatGLSL );
|
||||
FEATUREMGR->registerFeature( MFT_ToneMap, new TonemapFeatGLSL );
|
||||
FEATUREMGR->registerFeature( MFT_NormalMap, new BumpFeatGLSL );
|
||||
|
|
@ -173,7 +172,7 @@ void BasicLightManager::activate( SceneManager *sceneManager )
|
|||
}
|
||||
else
|
||||
{
|
||||
#if !defined( TORQUE_OS_MAC ) && !defined( TORQUE_OS_LINUX )
|
||||
#if defined( TORQUE_OS_WIN32 )
|
||||
FEATUREMGR->registerFeature( MFT_LightMap, new LightmapFeatHLSL );
|
||||
FEATUREMGR->registerFeature( MFT_ToneMap, new TonemapFeatHLSL );
|
||||
FEATUREMGR->registerFeature( MFT_NormalMap, new BumpFeatHLSL );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue