Removed clouds feature. Should be done with custom shaders now. Could be in the future part of weather

This commit is contained in:
jean
2021-02-07 21:31:22 +01:00
parent ab2e35579f
commit cee3cb79a5
3 changed files with 0 additions and 16 deletions

View File

@@ -35,13 +35,4 @@ void main() {
Diff = vec4(NdotL * Diffuse * sun_color, 1.);
Spec = vec4(NdotL * Specular * sun_color, 1.);
/* if (hasclouds == 1)
{
vec2 cloudcoord = (xpos.xz * 0.00833333) + wind;
float cloud = texture(cloudtex, cloudcoord).x;
//float cloud = step(0.5, cloudcoord.x) * step(0.5, cloudcoord.y);
outcol *= cloud;
}*/
}

View File

@@ -151,7 +151,6 @@ Track::Track(const std::string &filename)
m_bloom_threshold = 0.75f;
m_color_inlevel = core::vector3df(0.0,1.0, 255.0);
m_color_outlevel = core::vector2df(0.0, 255.0);
m_clouds = false;
m_godrays = false;
m_displacement_speed = 1.0f;
m_physical_object_uid = 0;
@@ -565,7 +564,6 @@ void Track::loadTrackInfo()
root->get("reverse", &m_reverse_available);
root->get("default-number-of-laps",&m_default_number_of_laps);
root->get("push-back", &m_enable_push_back);
root->get("clouds", &m_clouds);
root->get("bloom", &m_bloom);
root->get("bloom-threshold", &m_bloom_threshold);
root->get("shadows", &m_shadows);

View File

@@ -359,8 +359,6 @@ private:
float m_minimap_x_scale;
float m_minimap_y_scale;
bool m_clouds;
bool m_bloom;
float m_bloom_threshold;
@@ -670,9 +668,6 @@ public:
// ------------------------------------------------------------------------
const std::vector<Subtitle>& getSubtitles() const { return m_subtitles; }
// ------------------------------------------------------------------------
bool hasClouds() const { return m_clouds; }
// ------------------------------------------------------------------------
bool hasBloom() const { return m_bloom; }