From 6c7894f68dab1d8096bc98bc208e051550f1ec4e Mon Sep 17 00:00:00 2001 From: deflected Date: Wed, 21 Feb 2018 15:26:38 +0100 Subject: [PATCH] terrain: set ShaderTerrainMesh heightfield wrap mode to clamp --- panda/src/grutil/shaderTerrainMesh.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/panda/src/grutil/shaderTerrainMesh.cxx b/panda/src/grutil/shaderTerrainMesh.cxx index a7f6b1d8af..8aac5f0e9a 100644 --- a/panda/src/grutil/shaderTerrainMesh.cxx +++ b/panda/src/grutil/shaderTerrainMesh.cxx @@ -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); } /**