Models are now affected by shader objects
This commit is contained in:
parent
2b1c2a9145
commit
221bdd6b9c
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue