mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-28 08:14:29 +02:00
Additional Fixes
This commit is contained in:
parent
c6e101bd3f
commit
f9d1076086
@ -47,8 +47,6 @@
|
|||||||
|
|
||||||
Public Sampler As SamplerState
|
Public Sampler As SamplerState
|
||||||
|
|
||||||
Public ModelSampler As SamplerState
|
|
||||||
|
|
||||||
Public BackgroundColor As Color = New Color(173, 216, 255)
|
Public BackgroundColor As Color = New Color(173, 216, 255)
|
||||||
|
|
||||||
Public OffsetMaps As New Dictionary(Of String, List(Of List(Of Entity)))
|
Public OffsetMaps As New Dictionary(Of String, List(Of List(Of Entity)))
|
||||||
@ -92,11 +90,6 @@
|
|||||||
Sampler.AddressU = TextureAddressMode.Clamp
|
Sampler.AddressU = TextureAddressMode.Clamp
|
||||||
Sampler.AddressV = TextureAddressMode.Clamp
|
Sampler.AddressV = TextureAddressMode.Clamp
|
||||||
|
|
||||||
ModelSampler = New SamplerState()
|
|
||||||
ModelSampler.Filter = TextureFilter.Point
|
|
||||||
ModelSampler.AddressU = TextureAddressMode.Wrap
|
|
||||||
ModelSampler.AddressV = TextureAddressMode.Wrap
|
|
||||||
|
|
||||||
ServersManager = New Servers.ServersManager()
|
ServersManager = New Servers.ServersManager()
|
||||||
|
|
||||||
GraphicsDevice.SamplerStates(0) = Sampler
|
GraphicsDevice.SamplerStates(0) = Sampler
|
||||||
|
@ -551,7 +551,7 @@
|
|||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
Next
|
Next
|
||||||
Core.GraphicsDevice.SamplerStates(0) = Core.ModelSampler
|
Core.GraphicsDevice.SamplerStates(0) = SamplerState.PointWrap
|
||||||
Model.Draw(Me.World, Screen.Camera.View, Screen.Camera.Projection)
|
Model.Draw(Me.World, Screen.Camera.View, Screen.Camera.Projection)
|
||||||
Core.GraphicsDevice.SamplerStates(0) = Core.Sampler
|
Core.GraphicsDevice.SamplerStates(0) = Core.Sampler
|
||||||
If drawViewBox = True Then
|
If drawViewBox = True Then
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
Next
|
Next
|
||||||
Core.GraphicsDevice.SamplerStates(0) = Core.ModelSampler
|
Core.GraphicsDevice.SamplerStates(0) = SamplerState.PointWrap
|
||||||
_model.Draw(Me.World, Screen.Camera.View, Screen.Camera.Projection)
|
_model.Draw(Me.World, Screen.Camera.View, Screen.Camera.Projection)
|
||||||
Core.GraphicsDevice.SamplerStates(0) = Core.Sampler
|
Core.GraphicsDevice.SamplerStates(0) = Core.Sampler
|
||||||
End If
|
End If
|
||||||
|
@ -289,9 +289,24 @@ Public NotInheritable Class BasicEffectWithAlphaTest
|
|||||||
Public Sub New(ByVal cloneSource As BasicEffect)
|
Public Sub New(ByVal cloneSource As BasicEffect)
|
||||||
MyBase.New(cloneSource.GraphicsDevice, File.ReadAllBytes(Path.Combine(Path.GetDirectoryName(AppContext.BaseDirectory), "Content", "Effects", "BasicEffectWithAlphaTest.mgfxdx")))
|
MyBase.New(cloneSource.GraphicsDevice, File.ReadAllBytes(Path.Combine(Path.GetDirectoryName(AppContext.BaseDirectory), "Content", "Effects", "BasicEffectWithAlphaTest.mgfxdx")))
|
||||||
CacheEffectParameters(cloneSource)
|
CacheEffectParameters(cloneSource)
|
||||||
DirectionalLight0 = cloneSource.DirectionalLight0
|
With DirectionalLight0
|
||||||
DirectionalLight1 = cloneSource.DirectionalLight1
|
.Direction = cloneSource.DirectionalLight0.Direction
|
||||||
DirectionalLight2 = cloneSource.DirectionalLight2
|
.Enabled = cloneSource.DirectionalLight0.Enabled
|
||||||
|
.DiffuseColor = cloneSource.DirectionalLight0.DiffuseColor
|
||||||
|
.SpecularColor = cloneSource.DirectionalLight0.SpecularColor
|
||||||
|
End With
|
||||||
|
With DirectionalLight1
|
||||||
|
.Direction = cloneSource.DirectionalLight1.Direction
|
||||||
|
.Enabled = cloneSource.DirectionalLight1.Enabled
|
||||||
|
.DiffuseColor = cloneSource.DirectionalLight1.DiffuseColor
|
||||||
|
.SpecularColor = cloneSource.DirectionalLight1.SpecularColor
|
||||||
|
End With
|
||||||
|
With DirectionalLight2
|
||||||
|
.Direction = cloneSource.DirectionalLight2.Direction
|
||||||
|
.Enabled = cloneSource.DirectionalLight2.Enabled
|
||||||
|
.DiffuseColor = cloneSource.DirectionalLight2.DiffuseColor
|
||||||
|
.SpecularColor = cloneSource.DirectionalLight2.SpecularColor
|
||||||
|
End With
|
||||||
World = cloneSource.World
|
World = cloneSource.World
|
||||||
View = cloneSource.View
|
View = cloneSource.View
|
||||||
Projection = cloneSource.Projection
|
Projection = cloneSource.Projection
|
||||||
|
Loading…
x
Reference in New Issue
Block a user