Fixed noise shader function using deprecated "texture2D"
This commit is contained in:
parent
1f656a6f86
commit
9c774f3817
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue