This commit is contained in:
Brandon Mak 2022-11-01 12:10:15 +08:00
parent 5852c409e6
commit 53fc1fce95
1 changed files with 1 additions and 1 deletions

View File

@ -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;