Fix texture sampling syntax

This commit is contained in:
Imbris 2021-03-07 18:01:52 -05:00
parent 7c502c26bf
commit 8d5d4223d0

View File

@ -32,7 +32,7 @@ float hash_fast(uvec3 q)
// 2D, but using shifted 2D textures // 2D, but using shifted 2D textures
float noise_2d(vec2 pos) { float noise_2d(vec2 pos) {
return texture(t_noise, pos).x; return texture(sampler2D(t_noise, s_noise), pos).x;
} }
// 3D, but using shifted 2D textures // 3D, but using shifted 2D textures