fixed negative uv layer

This commit is contained in:
4sval
2022-12-06 00:41:45 +01:00
parent 2fea609a63
commit 31e2a867fa
2 changed files with 2 additions and 2 deletions

View File

@@ -74,7 +74,7 @@ out vec4 FragColor;
int LayerToIndex()
{
return min(int(fTexLayer), uNumTexCoords - 1);
return clamp(int(fTexLayer), 0, uNumTexCoords - 1);
}
vec4 SamplerToVector(sampler2D s)