mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
matched the same vRepeat condition to texture repeat/clamp as the original soft2egg
This commit is contained in:
parent
28d9a59d4c
commit
bcba0f6421
@ -2024,7 +2024,7 @@ apply_texture_properties(EggTexture &tex, int uRepeat, int vRepeat) {
|
||||
tex.set_magfilter(EggTexture::FT_linear);
|
||||
|
||||
EggTexture::WrapMode wrap_u = uRepeat > 0 ? EggTexture::WM_repeat : EggTexture::WM_clamp;
|
||||
EggTexture::WrapMode wrap_v = vRepeat > 0 ? EggTexture::WM_repeat : EggTexture::WM_clamp;
|
||||
EggTexture::WrapMode wrap_v = vRepeat > 1 ? EggTexture::WM_repeat : EggTexture::WM_clamp;
|
||||
|
||||
tex.set_wrap_u(wrap_u);
|
||||
tex.set_wrap_v(wrap_v);
|
||||
|
Loading…
x
Reference in New Issue
Block a user