mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 19:08:55 -04:00
cube maps should clamp
This commit is contained in:
parent
dc9d3fd09e
commit
53f446569e
@ -629,6 +629,8 @@ make_cube_map(const string &name, int size, bool to_ram,
|
|||||||
|
|
||||||
PT(Texture) tex = new Texture(name);
|
PT(Texture) tex = new Texture(name);
|
||||||
tex->setup_cube_map();
|
tex->setup_cube_map();
|
||||||
|
tex->set_wrap_u(Texture::WM_clamp);
|
||||||
|
tex->set_wrap_v(Texture::WM_clamp);
|
||||||
GraphicsOutput *buffer = make_texture_buffer(name, size, size, tex, to_ram);
|
GraphicsOutput *buffer = make_texture_buffer(name, size, size, tex, to_ram);
|
||||||
|
|
||||||
// We don't need to clear the overall buffer; instead, we'll clear
|
// We don't need to clear the overall buffer; instead, we'll clear
|
||||||
|
Loading…
x
Reference in New Issue
Block a user