-- Returns the current angle being used
-- by Roblox's shadow mapping system.


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
