No sun-stare glare when player ship is in shadow.
This commit is contained in:
parent
63ebac3758
commit
baf88431f8
@ -1972,7 +1972,7 @@ static GLfloat sBaseMass = 0.0;
|
||||
GLfloat measuredCos = 999.0f, measuredCosAbs, sunBrightness = 0.0f;
|
||||
Vector relativePosition, unitRelativePosition;
|
||||
|
||||
if (!sun) return 0.0f;
|
||||
if (!sun || !isSunlit) return 0.0f;
|
||||
|
||||
relativePosition = HPVectorToVector(HPvector_subtract([self viewpointPosition], [sun position]));
|
||||
unitRelativePosition = vector_normal_or_zbasis(relativePosition);
|
||||
|
Loading…
x
Reference in New Issue
Block a user