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.
mVertexFormat validation fix

With Permission from Jeff Faust.

   // AFX CODE BLOCK (bug-fix) <<
(no text, self evident)
depth correction

With Permission from Jeff Faust.

   // AFX CODE BLOCK (bug-fix) <<
   // This fix prevents some bad rendering artifacts that occur at the edge of the visibleDistance.
   // The artifacts are most obvious when there is fog present.
Ref Count Catch

With Permission from Jeff Faust.

         // AFX CODE BLOCK (bug-fix) <<
         // for events that are not GuaranteedOrdered we can get here w/o ever
         // incrementing ref-count on the event.
Ref Count Catch

With Permission from Jeff Faust.

         // AFX CODE BLOCK (bug-fix) <<
(no text, self evident)
Oriented Particles UV Correction

With Permission from Jeff Faust.

   // AFX CODE BLOCK (bug-fix) <<
   // this fix re-orders the UV coords to produce a consistent orientation
   // with oriented particles in TGE.
Player Networking DIVNULL error correction

With Permission from Jeff Faust.

   // AFX CODE BLOCK (bug-fix) <<
   // avoids a divide-by-zero when maxEnergy is set to zero.
Merge branch 'AFXFIX2_VertFormatCheck' into Jeff_Faust_Fixes
Merge branch 'AFXFIX3_FogFix' into Jeff_Faust_Fixes
Merge branch 'AFXFIX4_RefcountCatch' into Jeff_Faust_Fixes
Merge branch 'AFXFIX5_ParticleProtection' into Jeff_Faust_Fixes
Merge branch 'AFXFIX6_ParticleOrientation' into Jeff_Faust_Fixes
Merge branch 'AFXFIX7_PlayerDivNULL' into Jeff_Faust_Fixes
Revert "Ref Count Catch"

This reverts commit dbf9275037402bbd619d4c9e007445ee2d19fff7.
Merge pull request #2 from Azaezel/Jeff_Faust_Fixes

Jeff faust fixes