diff options
author | Sebastian Park <SebPark03@gmail.com> | 2024-05-10 00:33:27 -0400 |
---|---|---|
committer | Sebastian Park <SebPark03@gmail.com> | 2024-05-10 00:33:27 -0400 |
commit | 8f61cdb6c394b7c32a495966c7ad3a088c91c17b (patch) | |
tree | c5de34e832b822e17bfff3238138dd7a5851b1e8 /resources/shaders/caustics.vert | |
parent | 7a61605e57d96bf5c699c9c759288376b8c94eac (diff) |
Fix messed up bind framebuffer.
Diffstat (limited to 'resources/shaders/caustics.vert')
-rw-r--r-- | resources/shaders/caustics.vert | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/shaders/caustics.vert b/resources/shaders/caustics.vert index 298f5e1..f1e80be 100644 --- a/resources/shaders/caustics.vert +++ b/resources/shaders/caustics.vert @@ -45,7 +45,7 @@ void main() { vec4 sampledNormal = texture(normSamp, vec2((pos + 1) / 2)); sampledNormal = (sampledNormal * 2.f) - 1.f; col = sampledNormal; - vec4 newPosAndProb = refractToFloor(vec3(0, 0, 1), pos, normalize(vec3(sampledNormal)), 0.01f); + vec4 newPosAndProb = refractToFloor(vec3(0, 0, 1), pos, normalize(vec3(sampledNormal)), 0.005f); newPos = vec3(newPosAndProb[0], newPosAndProb[1], 0.f); refractProb = newPosAndProb[3]; // newPos = pos; |