mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 08:44:19 -04:00
terrain: set ShaderTerrainMesh heightfield wrap mode to clamp
This commit is contained in:
parent
9afdb78d94
commit
6c7894f68d
@ -150,6 +150,8 @@ void ShaderTerrainMesh::do_extract_heightfield() {
|
||||
}
|
||||
_heightfield_tex->set_minfilter(SamplerState::FT_linear);
|
||||
_heightfield_tex->set_magfilter(SamplerState::FT_linear);
|
||||
_heightfield_tex->set_wrap_u(SamplerState::WM_clamp);
|
||||
_heightfield_tex->set_wrap_v(SamplerState::WM_clamp);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user