log simulation timestamp, add highp int precision to gles shaders

This commit is contained in:
milek7
2021-01-20 18:06:37 +01:00
parent 809f0c2077
commit 97d6547824
2 changed files with 2 additions and 0 deletions

View File

@@ -229,6 +229,7 @@ gl::shader::shader(const std::string &filename)
str += "#version 300 es\n"; str += "#version 300 es\n";
} }
str += "precision highp float;\n"; str += "precision highp float;\n";
str += "precision highp int;\n";
str += "precision highp sampler2DShadow;\n"; str += "precision highp sampler2DShadow;\n";
} }
str += "vec4 FBOUT(vec4 x) { return " + (Global.gfx_shadergamma ? std::string("vec4(pow(x.rgb, vec3(1.0 / 2.2)), x.a)") : std::string("x")) + "; }\n"; str += "vec4 FBOUT(vec4 x) { return " + (Global.gfx_shadergamma ? std::string("vec4(pow(x.rgb, vec3(1.0 / 2.2)), x.a)") : std::string("x")) + "; }\n";

View File

@@ -42,6 +42,7 @@ scenarioloader_mode::update() {
if (!state) { if (!state) {
WriteLog("using simulation seed: " + std::to_string(Global.random_seed), logtype::generic); WriteLog("using simulation seed: " + std::to_string(Global.random_seed), logtype::generic);
WriteLog("using simulation starting timestamp: " + std::to_string(Global.starting_timestamp), logtype::generic);
Application.set_title( Global.AppName + " (" + Global.SceneryFile + ")" ); Application.set_title( Global.AppName + " (" + Global.SceneryFile + ")" );
WriteLog( "\nLoading scenario \"" + Global.SceneryFile + "\"..." ); WriteLog( "\nLoading scenario \"" + Global.SceneryFile + "\"..." );