osgearth
osgearth copied to clipboard
Clamping does not work with rectangles
Hi, if I edit the tests/scene_clamping.earth file to use a rectangle instead of a circle, the rectangle outline does not follow the terrain contour (the circles do):
To reproduce: start osgEarth viewer: /osgearth_pickd /home/lang/dev/osgearth/tests/scene_clamping.earth
I replaced the circle with a rectangle by using the following code
<rectangle name="Circle clamped directly to the ground"> <position lat="22.074" long="-159.606"/> <width value="1.2" units="km"/> <height value="1.2" units="km"/> <style type="text/css"> stroke: #00ff00; stroke-width: 2px; stroke-tessellation-size: 500m; altitude-binding: vertex; altitude-clamping: terrain; altitude-technique: scene; render-depth-offset: true; </style> </rectangle>