mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-21 18:19:19 +02:00
merge, fixed, sort of works (todo: fix cabin light, stars and fog)
This commit is contained in:
22
Globals.cpp
22
Globals.cpp
@@ -83,10 +83,12 @@ double Global::fFogStart = 1700;
|
||||
double Global::fFogEnd = 2000;
|
||||
float Global::Overcast{ 0.1f }; // NOTE: all this weather stuff should be moved elsewhere
|
||||
int Global::DynamicLightCount = 7;
|
||||
GLfloat Global::whiteLight[] = {1.00f, 1.00f, 1.00f, 1.0f};
|
||||
GLfloat Global::noLight[] = {0.00f, 0.00f, 0.00f, 1.0f};
|
||||
GLfloat Global::darkLight[] = {0.03f, 0.03f, 0.03f, 1.0f}; //śladowe
|
||||
GLfloat Global::lightPos[4];
|
||||
bool Global::ScaleSpecularValues = false;
|
||||
//m7todo: po co to?
|
||||
//GLfloat Global::whiteLight[] = {1.00f, 1.00f, 1.00f, 1.0f};
|
||||
//GLfloat Global::noLight[] = {0.00f, 0.00f, 0.00f, 1.0f};
|
||||
//GLfloat Global::darkLight[] = {0.03f, 0.03f, 0.03f, 1.0f}; //śladowe
|
||||
//GLfloat Global::lightPos[4];
|
||||
bool Global::bRollFix = true; // czy wykonać przeliczanie przechyłki
|
||||
bool Global::bJoinEvents = false; // czy grupować eventy o tych samych nazwach
|
||||
int Global::iHiddenEvents = 1; // czy łączyć eventy z torami poprzez nazwę toru
|
||||
@@ -223,13 +225,6 @@ std::string Global::GetNextSymbol()
|
||||
|
||||
void Global::LoadIniFile(std::string asFileName)
|
||||
{
|
||||
/*
|
||||
for (int i = 0; i < 10; ++i)
|
||||
{ // zerowanie pozycji kamer
|
||||
pFreeCameraInit[i] = vector3(0, 0, 0); // współrzędne w scenerii
|
||||
pFreeCameraInitAngle[i] = vector3(0, 0, 0); // kąty obrotu w radianach
|
||||
}
|
||||
*/
|
||||
FreeCameraInit.resize( 10 );
|
||||
FreeCameraInitAngle.resize( 10 );
|
||||
cParser parser(asFileName, cParser::buffer_FILE);
|
||||
@@ -536,6 +531,11 @@ void Global::ConfigParse(cParser &Parser)
|
||||
// max 8 lights per opengl specs, minus one used for sun. at least one light for controlled vehicle
|
||||
Global::DynamicLightCount = clamp( Global::DynamicLightCount, 1, 7 );
|
||||
}
|
||||
else if( token == "scalespeculars" ) {
|
||||
// whether strength of specular highlights should be adjusted (generally needed for legacy 3d models)
|
||||
Parser.getTokens();
|
||||
Parser >> Global::ScaleSpecularValues;
|
||||
}
|
||||
else if (token == "smoothtraction")
|
||||
{
|
||||
// podwójna jasność ambient
|
||||
|
||||
Reference in New Issue
Block a user