mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
experiments with shaders
This commit is contained in:
12
Traction.cpp
12
Traction.cpp
@@ -328,9 +328,9 @@ void TTraction::RenderDL(float mgn) // McZapkie: mgn to odleglosc od obserwatora
|
||||
g *= Global::ambientDayLight[ 1 ];
|
||||
b *= Global::ambientDayLight[ 2 ];
|
||||
#else
|
||||
r *= Global::DayLight.ambient[ 0 ]; // w zaleźności od koloru swiatła
|
||||
g *= Global::DayLight.ambient[ 1 ];
|
||||
b *= Global::DayLight.ambient[2];
|
||||
r *= Global::daylight.ambient.x; // w zaleźności od koloru swiatła
|
||||
g *= Global::daylight.ambient.y;
|
||||
b *= Global::daylight.ambient.z;
|
||||
#endif
|
||||
if (linealpha > 1.0f)
|
||||
linealpha = 1.0f; // trzeba ograniczyć do <=1
|
||||
@@ -538,9 +538,9 @@ void TTraction::RenderVBO(float mgn, int iPtr)
|
||||
g *= Global::ambientDayLight[ 1 ];
|
||||
b *= Global::ambientDayLight[ 2 ];
|
||||
#else
|
||||
r *= Global::DayLight.ambient[ 0 ]; // w zaleźności od koloru swiatła
|
||||
g *= Global::DayLight.ambient[ 1 ];
|
||||
b *= Global::DayLight.ambient[ 2 ];
|
||||
r *= Global::daylight.ambient.x; // w zaleźności od koloru swiatła
|
||||
g *= Global::daylight.ambient.y;
|
||||
b *= Global::daylight.ambient.z;
|
||||
#endif
|
||||
if (linealpha > 1.0f)
|
||||
linealpha = 1.0f; // trzeba ograniczyć do <=1
|
||||
|
||||
Reference in New Issue
Block a user