1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-09-19 20:16:10 +08:00

Modified SDK for GCC 4.2

This commit is contained in:
Scott Ehlert
2008-09-15 02:50:57 -05:00
parent 86f3bc8a60
commit 7ff7f366d5
696 changed files with 23423 additions and 22634 deletions

View File

@ -83,6 +83,9 @@ void LightDesc_t::ComputeLightAtPoints( const FourVectors &pos, const FourVector
case MATERIAL_LIGHT_DIRECTIONAL:
ComputeLightAtPointsForDirectional( pos, normal, color, DoHalfLambert );
return;
default:
return;
}
fltx4 dist2 = delta*delta;
@ -154,8 +157,9 @@ void LightDesc_t::ComputeLightAtPoints( const FourVectors &pos, const FourVector
strength=AndSIMD(OutsideMask,strength);
}
break;
default:
break;
}
strength=MulSIMD(strength,falloff);
color.x=AddSIMD(color.x,MulSIMD(strength,ReplicateX4(m_Color.x)));
@ -179,6 +183,9 @@ void LightDesc_t::ComputeNonincidenceLightAtPoints( const FourVectors &pos, Four
case MATERIAL_LIGHT_DIRECTIONAL:
return;
default:
return;
}
fltx4 dist2 = delta*delta;
@ -247,7 +254,8 @@ void LightDesc_t::ComputeNonincidenceLightAtPoints( const FourVectors &pos, Four
}
break;
default:
break;
}
strength=MulSIMD(strength,falloff);
color.x=AddSIMD(color.x,MulSIMD(strength,ReplicateX4(m_Color.x)));