Skip to content

Commit 45090f7

Browse files
committed
Shader fixes
1 parent a9db6c4 commit 45090f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paint/shaders/prefilter_envmap.kong

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ fun prefilter_envmap_vert(input: vert_in): vert_out {
3535

3636
fun rand(co: float2): float {
3737
// return frac(sin(dot(co.xy, float2(12.9898, 78.233)) % 3.14) * 43758.5453);
38-
var uv: float2 = frac(co * 12.34);
38+
var uv: float2 = float2(frac(co.x * 12.34), frac(co.y * 12.34));
3939
return sample(noise, sampler_linear, uv).r;
4040
}
4141

0 commit comments

Comments
 (0)