summaryrefslogtreecommitdiff
path: root/resources/shaders/caustics.frag
diff options
context:
space:
mode:
authorjjesswan <jessica_wan@brown.edu>2024-05-10 01:52:52 -0400
committerjjesswan <jessica_wan@brown.edu>2024-05-10 01:52:52 -0400
commitc93b28613dd9c33de29152f987aeec3ca8340f8d (patch)
treeb3f7e39cdc0de827bac057f1a9e08f5f74f5bf84 /resources/shaders/caustics.frag
parentd2f792c6fee2a6e78dcf2fff77f43ef036c58877 (diff)
parent6aab43ffd2c29a66f71b0684974abd5b2685341c (diff)
merge with new foam fixes
Diffstat (limited to 'resources/shaders/caustics.frag')
-rw-r--r--resources/shaders/caustics.frag2
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/shaders/caustics.frag b/resources/shaders/caustics.frag
index f746896..5d2569d 100644
--- a/resources/shaders/caustics.frag
+++ b/resources/shaders/caustics.frag
@@ -14,7 +14,7 @@ void main() {
float oldArea = length(dFdx(vec3(pos[0], pos[2], pos[1]))) * length(dFdy(vec3(pos[0], pos[2], pos[1])));
float newArea = length(dFdx(vec3(newPos[0], newPos[2], newPos[1]))) * length(dFdy(vec3(newPos[0], newPos[2], newPos[1])));
float areaRatio = oldArea / newArea;
- float intensity = pow(areaRatio * .3f, 1.5f);
+ float intensity = pow(areaRatio * 1.f, 1.5f);
fragColor = vec4(0.98, 1, .78, intensity * refractProb);
// fragColor = col;
}