mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Projected Shadow fix
With Permission from Jeff Faust. // AFX CODE BLOCK (bug-fix) << // For ShapeBase objects this causes the shader to fade along with the // object and also prevents a rectangular shadow artifact from occuring // once the visibility is zero.
This commit is contained in:
parent
84430a46a8
commit
a3fab3d4c4
1 changed files with 3 additions and 0 deletions
|
|
@ -230,6 +230,9 @@ bool ProjectedShadow::_updateDecal( const SceneRenderState *state )
|
|||
lightCount++;
|
||||
}
|
||||
|
||||
if (mShapeBase)
|
||||
fade *= mShapeBase->getFadeVal();
|
||||
|
||||
lightDir.normalize();
|
||||
|
||||
// No light... no shadow.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue