<div dir="ltr"><div><div><div>Hi all,<br><br></div>I am questioning the hardcoded use for CLAMP_TO_EDGE texture wrapping modes in the osgTerrain/GeometryTechnique.cpp.<br><br></div>Let's say that I wanted to add a high tes texture patch on some small location on a terrain tile. The current CLAMP_TO_EDGE approach requires me to modify the edge pixels of that terrain tile to have a transparent color. So I basically lose these pixels.<br><br></div>I think it would be desirable to have the texture wrapping mode as a configurable option in the osgTerrain::Layer base class, similar to how currently the minLevel, maxLevel, minFilter and magFilter variables are configurable there.<br><div><br><div>Preferable to me would be an approach using CLAMP_TO_BORDER where I can define my own border color, for example to be fully transparent.<br><br></div><div>If this is an acceptable approach, I could submit a patch.<br></div><div><br></div><div>Christian<br><br></div></div><div><br></div><div><br></div></div>