1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-09-20 04:26:03 +08:00

Modified SDK for GCC 4.1

This commit is contained in:
Scott Ehlert
2008-09-15 01:33:59 -05:00
parent 325306db96
commit 4c2b8fd6c4
543 changed files with 100067 additions and 91817 deletions

View File

@ -38,6 +38,7 @@ void LightDesc_t::ComputeLightAtPoints( const FourVectors &pos, const FourVector
FourVectors &color, bool DoHalfLambert ) const
{
FourVectors delta;
Assert((m_Type==MATERIAL_LIGHT_POINT) || (m_Type==MATERIAL_LIGHT_SPOT) || (m_Type==MATERIAL_LIGHT_DIRECTIONAL));
switch (m_Type)
{
@ -51,6 +52,12 @@ void LightDesc_t::ComputeLightAtPoints( const FourVectors &pos, const FourVector
delta.DuplicateVector(m_Direction);
delta*=-1.0;
break;
default:
delta.x = Four_Zeros;
delta.y = Four_Zeros;
delta.z = Four_Zeros;
break;
}
__m128 dist2 = delta*delta;
@ -123,6 +130,9 @@ void LightDesc_t::ComputeLightAtPoints( const FourVectors &pos, const FourVector
case MATERIAL_LIGHT_DIRECTIONAL:
break;
default:
break;
}
strength=_mm_mul_ps(strength,falloff);