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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user