Fixed noise shader function using deprecated "texture2D"

This commit is contained in:
Michaël Lemaire 2015-12-09 00:34:56 +01:00
parent 1f656a6f86
commit 9c774f3817

View file

@ -9,7 +9,7 @@ vec3 noiseNormal2d(vec2 location, float detail)
vec3 normal = vec3(0.0, 0.0, 0.0);
for (float scaling = 1.0; scaling < 400.0; scaling *= 1.5)
{
normal += texture2D(simplexSampler, location * 0.01 * scaling).xyz;
normal += texture(simplexSampler, location * 0.01 * scaling).xyz;
}
return normalize(normal);
}