mirror of
https://github.com/4sval/FModel.git
synced 2026-03-22 01:34:37 -05:00
fixed negative uv layer
This commit is contained in:
parent
2fea609a63
commit
31e2a867fa
|
|
@ -1 +1 @@
|
|||
Subproject commit d9c3db37652e615cf7160c168ccdb995171d1947
|
||||
Subproject commit 90a03d2a1d1d56f4d486c95e3ea439057388bacc
|
||||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user