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:
@ -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);
|
||||
|
Reference in New Issue
Block a user