function FpsCamera.GetShadowAngle(V)local n=Lighting:GetSunDirection()if n.Y<-0.3 then n=Lighting:GetMoonDirection()end return n end


function FpsCamera:GetShadowAngle()
	local angle = Lighting:GetSunDirection()
	
	if angle.Y < -0.3 then
		-- Use the moon's angle instead.
		angle = Lighting:GetMoonDirection()
	end
	
	return angle
end
