We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9db6c4 commit 45090f7Copy full SHA for 45090f7
paint/shaders/prefilter_envmap.kong
@@ -35,7 +35,7 @@ fun prefilter_envmap_vert(input: vert_in): vert_out {
35
36
fun rand(co: float2): float {
37
// return frac(sin(dot(co.xy, float2(12.9898, 78.233)) % 3.14) * 43758.5453);
38
- var uv: float2 = frac(co * 12.34);
+ var uv: float2 = float2(frac(co.x * 12.34), frac(co.y * 12.34));
39
return sample(noise, sampler_linear, uv).r;
40
}
41
0 commit comments