Skip to content

Commit fefdd5a

Browse files
committed
SL-20730 Scrub nans from haze alpha
1 parent 60196f6 commit fefdd5a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

indra/newview/app_settings/shaders/class3/deferred/hazeF.glsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,6 @@ void main()
102102
alpha = 1.0;
103103
}
104104

105-
frag_color.rgb = max(color.rgb, vec3(0)); //output linear since local lights will be added to this shader's results
106-
frag_color.a = alpha;
105+
frag_color = max(vec4(color.rgb, alpha), vec4(0)); //output linear since local lights will be added to this shader's results
106+
107107
}

indra/newview/app_settings/shaders/class3/deferred/waterHazeF.glsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,6 @@ void main()
6060

6161
vec4 fogged = getWaterFogView(pos.xyz);
6262

63-
frag_color.rgb = max(fogged.rgb, vec3(0)); //output linear since local lights will be added to this shader's results
64-
frag_color.a = fogged.a;
63+
frag_color = max(fogged, vec4(0)); //output linear since local lights will be added to this shader's results
64+
6565
}

0 commit comments

Comments
 (0)