mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-23 13:55:38 +02:00
Fix model lighting bug
This commit is contained in:
parent
35c8e8f4c5
commit
cbce5512cc
@ -655,7 +655,6 @@
|
||||
If Not Me.Model Is Nothing Then
|
||||
For Each mesh As ModelMesh In Me.Model.Meshes
|
||||
For Each part As ModelMeshPart In mesh.MeshParts
|
||||
If part.Effect.GetType().Name.ToLower() = Screen.Effect.GetType().Name.ToLower() Then
|
||||
With CType(part.Effect, BasicEffect)
|
||||
Lighting.UpdateLighting(CType(part.Effect, BasicEffect), True)
|
||||
.Alpha = Me.Opacity
|
||||
@ -672,7 +671,6 @@
|
||||
.FogEnd = Screen.Effect.FogEnd
|
||||
.FogStart = Screen.Effect.FogStart
|
||||
End With
|
||||
End If
|
||||
Next
|
||||
Next
|
||||
End If
|
||||
|
Loading…
x
Reference in New Issue
Block a user