diff options
author | Erik Kundiman <erik@megapahit.org> | 2024-11-22 20:30:45 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2024-11-22 20:30:45 +0800 |
commit | 0de3cd8caeec33a66306f864de9cf55827dc5651 (patch) | |
tree | 318a7818abaafa233cd24032912bc8b64d974030 /indra/newview/app_settings/shaders/class2/deferred/alphaF.glsl | |
parent | 65814d0ed1ead97a92822b39a9ab85f04eb5aed4 (diff) |
More of making operands consistently float
Diffstat (limited to 'indra/newview/app_settings/shaders/class2/deferred/alphaF.glsl')
-rw-r--r-- | indra/newview/app_settings/shaders/class2/deferred/alphaF.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/app_settings/shaders/class2/deferred/alphaF.glsl b/indra/newview/app_settings/shaders/class2/deferred/alphaF.glsl index e9f849a8c0..7357e27117 100644 --- a/indra/newview/app_settings/shaders/class2/deferred/alphaF.glsl +++ b/indra/newview/app_settings/shaders/class2/deferred/alphaF.glsl @@ -147,7 +147,7 @@ vec3 calcPointLightOrSpotLight(vec3 light_col, vec3 diffuse, vec3 v, vec3 n, vec float lit = 0.0f; float amb_da = 0.0;//ambiance; - if (da > 0) + if (da > 0.0) { lit = max(da * dist_atten,0.0); col = lit * light_col * diffuse; |