BUG FIX - Wrong calculation of terrain normals

The partial derivative for the x-coordinate has been wrongly calculated: only a single sided derivative was calculated.
This commit is contained in:
Hartwig
2016-12-29 21:43:20 +01:00
parent d36302cb0c
commit 3c482467ea

View File

@@ -329,11 +329,11 @@ class VertexNormalGenerator
osg::Vec3 zero(0.0f,0.0f,0.0f);
if (left_valid)
{
dx = center-left;
dx += center-left;
}
if (right_valid)
{
dx = right-center;
dx += right-center;
}
if (bottom_valid)
{