Fix for invisible sky when graphicstyle = fast
This commit is contained in:
parent
e187747ef8
commit
384c485ba5
|
@ -49,7 +49,6 @@
|
|||
Dim Second As Integer = 0
|
||||
|
||||
Public Sub Draw(ByVal FOV As Single)
|
||||
If Core.GameOptions.GraphicStyle = 1 Then
|
||||
If Screen.Level.World.EnvironmentType = World.EnvironmentTypes.Outside Then
|
||||
If World.GetWeatherFromWeatherType(Screen.Level.WeatherType) <> World.Weathers.Fog Then ' Don't render the sky if the weather is set to Fog.
|
||||
RenderHalf(FOV, Yaw, 0.0F, True, GetSkyTexture(), 20, 1.0F) ' Draw the sky
|
||||
|
@ -73,7 +72,6 @@
|
|||
RenderHalf(FOV, Yaw, 0.0F, False, TextureDown, 16, 1.0F)
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub RenderHalf(ByVal FOV As Single, ByVal useYaw As Single, ByVal usePitch As Single, ByVal up As Boolean, ByVal texture As Texture2D, ByVal scale As Single, ByVal alpha As Single)
|
||||
|
|
Loading…
Reference in New Issue