Skip to content

Commit 0fd05b6

Browse files
committed
fixed saturation of the cubemap
1 parent 8192fb4 commit 0fd05b6

File tree

7 files changed

+1
-1
lines changed

7 files changed

+1
-1
lines changed

public/cubemap/negx.png

53.5 KB
Loading

public/cubemap/negy.png

53.5 KB
Loading

public/cubemap/negz.png

48 KB
Loading

public/cubemap/posx.png

60.8 KB
Loading

public/cubemap/posy.png

47.9 KB
Loading

public/cubemap/posz.png

41.5 KB
Loading

render/fluid.wgsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ fn fs(input: FragmentInput) -> @location(0) vec4f {
7575
var refractionColor: vec3f = bgColor * transmittance;
7676

7777
let F0 = 0.02;
78-
var fresnel: f32 = clamp(F0 + (1.0 - F0) * pow(1.0 - dot(normal, -rayDir), 5.0) + 0.05, 0., 1.);
78+
var fresnel: f32 = clamp(F0 + (1.0 - F0) * pow(1.0 - dot(normal, -rayDir), 5.0) + 0.0, 0., 1.);
7979

8080
var reflectionDir: vec3f = reflect(rayDir, normal);
8181
var reflectionDirWorld: vec3f = (uniforms.inv_view_matrix * vec4f(reflectionDir, 0.0)).xyz;

0 commit comments

Comments
 (0)