WIP
This commit is contained in:
parent
5852c409e6
commit
53fc1fce95
|
@ -47,7 +47,7 @@ void main()
|
||||||
|
|
||||||
vec2 noiseDim = vec2 (textureSize(noiseTexture, 0));
|
vec2 noiseDim = vec2 (textureSize(noiseTexture, 0));
|
||||||
vec2 threadUV = (vec2(globalThread) + vec2 (0.5f)) / vec2(size);
|
vec2 threadUV = (vec2(globalThread) + vec2 (0.5f)) / vec2(size);
|
||||||
vec2 noiseUVMult = vec2 ((vec2(size) / noiseDim);
|
vec2 noiseUVMult = vec2 (vec2(size) / noiseDim);
|
||||||
noiseUVMult *= threadUV;
|
noiseUVMult *= threadUV;
|
||||||
vec3 randomVec = texture(noiseTexture, noiseUVMult).rgb;
|
vec3 randomVec = texture(noiseTexture, noiseUVMult).rgb;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue