Renderer update. Incl mac fixes, DoF improvements, windlight floater code cleanup. (shining-fixes merge)
This commit is contained in:
@@ -202,6 +202,12 @@ BOOL LLVOWater::updateGeometry(LLDrawable *drawable)
|
||||
|
||||
F32 size_inv = 1.f / size;
|
||||
|
||||
F32 z_fudge = 0.f;
|
||||
|
||||
if (getIsEdgePatch())
|
||||
{ //bump edge patches down 10 cm to prevent aliasing along edges
|
||||
z_fudge = -0.1f;
|
||||
}
|
||||
for (y = 0; y < size; y++)
|
||||
{
|
||||
for (x = 0; x < size; x++)
|
||||
@@ -210,6 +216,7 @@ BOOL LLVOWater::updateGeometry(LLDrawable *drawable)
|
||||
position_agent = getPositionAgent() - getScale() * 0.5f;
|
||||
position_agent.mV[VX] += (x + 0.5f) * step_x;
|
||||
position_agent.mV[VY] += (y + 0.5f) * step_y;
|
||||
position_agent.mV[VZ] += z_fudge;
|
||||
|
||||
*verticesp++ = position_agent - right + up;
|
||||
*verticesp++ = position_agent - right - up;
|
||||
|
||||
Reference in New Issue
Block a user