Models are now affected by shader objects

This commit is contained in:
JappaWakka 2024-09-17 19:11:08 +02:00
parent 2b1c2a9145
commit 221bdd6b9c
1 changed files with 1 additions and 1 deletions

View File

@ -662,7 +662,7 @@
With CType(part.Effect, BasicEffect) With CType(part.Effect, BasicEffect)
Lighting.UpdateLighting(CType(part.Effect, BasicEffect), True) Lighting.UpdateLighting(CType(part.Effect, BasicEffect), True)
.Alpha = Me.Opacity .Alpha = Me.Opacity
.DiffuseColor = Screen.Effect.DiffuseColor .DiffuseColor = Screen.Effect.DiffuseColor * Me.Shader * Me.Color
If Not Screen.Level.World Is Nothing Then If Not Screen.Level.World Is Nothing Then
If Screen.Level.World.EnvironmentType = P3D.World.EnvironmentTypes.Outside Then If Screen.Level.World.EnvironmentType = P3D.World.EnvironmentTypes.Outside Then