diff options
author | Erik Kundiman <erik@megapahit.org> | 2024-06-02 11:10:26 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2024-06-02 11:10:26 +0800 |
commit | aebd601a9399433146933510dcfdb04abe7e03d5 (patch) | |
tree | 2e8b755151a5b1f92297cd477565d7fb246292b9 /indra/newview/app_settings/shaders/class1/windlight | |
parent | 30e33e279b1b2d04951c399f548c3afc3b17fd1b (diff) |
More float operands for float operations
This is so that it doesn't throw a compilation error at runtime
for not defining consistently with float values,
which would be uncastable on some certain other implementation.
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/windlight')
-rw-r--r-- | indra/newview/app_settings/shaders/class1/windlight/atmosphericsV.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/app_settings/shaders/class1/windlight/atmosphericsV.glsl b/indra/newview/app_settings/shaders/class1/windlight/atmosphericsV.glsl index 1372ddbcfa..bdc5b58060 100644 --- a/indra/newview/app_settings/shaders/class1/windlight/atmosphericsV.glsl +++ b/indra/newview/app_settings/shaders/class1/windlight/atmosphericsV.glsl @@ -47,7 +47,7 @@ void calcAtmospherics(vec3 inPositionEye) { vec3 tmpaddlit = vec3(1); vec3 tmpattenlit = vec3(1); vec3 light_dir = (sun_up_factor == 1) ? sun_dir : moon_dir; - calcAtmosphericVars(inPositionEye, light_dir, 1, tmpsunlit, tmpamblit, tmpaddlit, tmpattenlit); + calcAtmosphericVars(inPositionEye, light_dir, 1.0, tmpsunlit, tmpamblit, tmpaddlit, tmpattenlit); setSunlitColor(tmpsunlit); setAmblitColor(tmpamblit); setAdditiveColor(tmpaddlit); |