Skip to content

Commit 6a3ecb5

Browse files
committed
cubemap link
1 parent 60fa2c6 commit 6a3ecb5

File tree

8 files changed

+2
-1
lines changed

8 files changed

+2
-1
lines changed

public/cubemap/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Cubemap from https://opengameart.org/content/sky-box-sunny-day by Chad Wolfe

public/cubemap/negx.png

-78.1 KB
Loading

public/cubemap/negy.png

54.6 KB
Loading

public/cubemap/negz.png

-13.9 KB
Loading

public/cubemap/posx.png

-20.5 KB
Loading

public/cubemap/posy.png

-36.9 KB
Loading

public/cubemap/posz.png

-70.8 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.00, 0., 1.);
78+
var fresnel: f32 = clamp(F0 + (1.0 - F0) * pow(1.0 - dot(normal, -rayDir), 5.0) + 0.05, 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)