mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-31 01:35:20 +02:00
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
|
Dim Second As Integer = 0
|
||||||
|
|
||||||
Public Sub Draw(ByVal FOV As Single)
|
Public Sub Draw(ByVal FOV As Single)
|
||||||
If Core.GameOptions.GraphicStyle = 1 Then
|
|
||||||
If Screen.Level.World.EnvironmentType = World.EnvironmentTypes.Outside 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.
|
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
|
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)
|
RenderHalf(FOV, Yaw, 0.0F, False, TextureDown, 16, 1.0F)
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
End If
|
|
||||||
End Sub
|
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)
|
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…
x
Reference in New Issue
Block a user