summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class1/objects
diff options
context:
space:
mode:
authormobserveur <mobserveur@gmail.co[alias]>2025-03-30 16:14:52 +0200
committermobserveur <mobserveur@gmail.co[alias]>2025-03-30 16:14:52 +0200
commitd9153e3456e618def6b74729ce9a7ace093bb14a (patch)
tree5358010207f61c15eab59b8644c2a6da27608315 /indra/newview/app_settings/shaders/class1/objects
parent884cf68fee88c2ea58703e261bc303f5613a6c5b (diff)
Shadow options in the graphics advanced panel
New optimisation and resolution shadow options
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/objects')
-rw-r--r--indra/newview/app_settings/shaders/class1/objects/simpleColorF.glsl15
1 files changed, 2 insertions, 13 deletions
diff --git a/indra/newview/app_settings/shaders/class1/objects/simpleColorF.glsl b/indra/newview/app_settings/shaders/class1/objects/simpleColorF.glsl
index dea76da5a5..30d70122cb 100644
--- a/indra/newview/app_settings/shaders/class1/objects/simpleColorF.glsl
+++ b/indra/newview/app_settings/shaders/class1/objects/simpleColorF.glsl
@@ -33,20 +33,9 @@ uniform float waterSign;
void waterClip(vec3 pos)
{
- // TODO: make this less branchy
- if (waterSign > 0)
+ if (((dot(pos.xyz, waterPlane.xyz) + waterPlane.w) * waterSign) < 0.0)
{
- if ((dot(pos.xyz, waterPlane.xyz) + waterPlane.w) < 0.0)
- {
- discard;
- }
- }
- else
- {
- if ((dot(pos.xyz, waterPlane.xyz) + waterPlane.w) > 0.0)
- {
- discard;
- }
+ discard;
}
}