mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-06 05:50:31 +00:00
Source changes needed for Linux build.
This commit is contained in:
parent
109a766748
commit
d2700f881c
16 changed files with 73 additions and 27 deletions
|
|
@ -314,7 +314,7 @@ void LightManager::_update4LightConsts( const SceneData &sgData,
|
|||
|
||||
// NOTE: We haven't ported the lighting shaders on OSX
|
||||
// to the optimized HLSL versions.
|
||||
#ifdef TORQUE_OS_MAC
|
||||
#if defined( TORQUE_OS_MAC ) || defined( TORQUE_OS_LINUX )
|
||||
static AlignedArray<Point3F> lightPositions( 4, sizeof( Point4F ) );
|
||||
#else
|
||||
static AlignedArray<Point4F> lightPositions( 3, sizeof( Point4F ) );
|
||||
|
|
@ -342,7 +342,7 @@ void LightManager::_update4LightConsts( const SceneData &sgData,
|
|||
if ( !light )
|
||||
break;
|
||||
|
||||
#ifdef TORQUE_OS_MAC
|
||||
#if defined( TORQUE_OS_MAC ) || defined( TORQUE_OS_LINUX )
|
||||
|
||||
lightPositions[i] = light->getPosition();
|
||||
|
||||
|
|
@ -381,7 +381,7 @@ void LightManager::_update4LightConsts( const SceneData &sgData,
|
|||
shaderConsts->setSafe( lightDiffuseSC, lightColors );
|
||||
shaderConsts->setSafe( lightInvRadiusSqSC, lightInvRadiusSq );
|
||||
|
||||
#ifndef TORQUE_OS_MAC
|
||||
#if !defined( TORQUE_OS_MAC ) && !defined( TORQUE_OS_LINUX )
|
||||
|
||||
shaderConsts->setSafe( lightSpotDirSC, lightSpotDirs );
|
||||
shaderConsts->setSafe( lightSpotAngleSC, lightSpotAngle );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue