mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-31 01:35:20 +02:00
Transparent fix again, this time should work
This commit is contained in:
parent
39eeab8cd6
commit
6205b76421
@ -2,6 +2,10 @@
|
||||
|
||||
Inherits Entity
|
||||
|
||||
Protected Overrides Function CalculateCameraDistance(CPosition As Vector3) as Single
|
||||
Return MyBase.CalculateCameraDistance(CPosition) - 0.4f
|
||||
End Function
|
||||
|
||||
Public Overrides Sub UpdateEntity()
|
||||
If Me.Rotation.Y <> Screen.Camera.Yaw Then
|
||||
Me.Rotation.Y = Screen.Camera.Yaw
|
||||
|
@ -153,6 +153,10 @@
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Protected Overrides Function CalculateCameraDistance(CPosition As Vector3) as Single
|
||||
Return MyBase.CalculateCameraDistance(CPosition) - 0.2f
|
||||
End Function
|
||||
|
||||
Public Overrides Sub UpdateEntity()
|
||||
If Not WaterAnimation Is Nothing Then
|
||||
WaterAnimation.Update(0.01)
|
||||
|
@ -449,7 +449,7 @@
|
||||
End Sub
|
||||
|
||||
Protected Overrides Function CalculateCameraDistance(CPosition As Vector3) as Single
|
||||
Return MyBase.CalculateCameraDistance(CPosition)
|
||||
Return MyBase.CalculateCameraDistance(CPosition) - 0.2f
|
||||
End Function
|
||||
|
||||
Public Overrides Sub UpdateEntity()
|
||||
|
@ -201,7 +201,7 @@
|
||||
End Sub
|
||||
|
||||
Protected Overrides Function CalculateCameraDistance(CPosition As Vector3) as Single
|
||||
Return MyBase.CalculateCameraDistance(CPosition) + 0.2f
|
||||
Return MyBase.CalculateCameraDistance(CPosition) - 0.2f
|
||||
End Function
|
||||
|
||||
Public Overrides Sub UpdateEntity()
|
||||
|
@ -32,7 +32,7 @@
|
||||
End Sub
|
||||
|
||||
Protected Overrides Function CalculateCameraDistance(CPosition As Vector3) as Single
|
||||
Return MyBase.CalculateCameraDistance(CPosition) + 0.2f
|
||||
Return MyBase.CalculateCameraDistance(CPosition) - 0.2f
|
||||
End Function
|
||||
|
||||
Public Overrides Sub UpdateEntity()
|
||||
|
@ -98,7 +98,7 @@ Public Class OverworldPokemon
|
||||
End Sub
|
||||
|
||||
Protected Overrides Function CalculateCameraDistance(CPosition As Vector3) as Single
|
||||
Return MyBase.CalculateCameraDistance(CPosition) + 0.2f
|
||||
Return MyBase.CalculateCameraDistance(CPosition) - 0.2f
|
||||
End Function
|
||||
|
||||
Public Overrides Sub UpdateEntity()
|
||||
@ -114,7 +114,7 @@ Public Class OverworldPokemon
|
||||
Public Overrides Sub Render()
|
||||
If Me.IsVisible() = True Then
|
||||
Dim state = GraphicsDevice.DepthStencilState
|
||||
GraphicsDevice.DepthStencilState = DepthStencilState.None
|
||||
GraphicsDevice.DepthStencilState = DepthStencilState.DepthRead
|
||||
Draw(Me.Model, {Me.Textures(0)}, False)
|
||||
GraphicsDevice.DepthStencilState = state
|
||||
End If
|
||||
|
@ -72,7 +72,7 @@
|
||||
End Sub
|
||||
|
||||
Protected Overrides Function CalculateCameraDistance(CPosition As Vector3) as Single
|
||||
Return MyBase.CalculateCameraDistance(CPosition) + 0.2f
|
||||
Return MyBase.CalculateCameraDistance(CPosition) - 0.2f
|
||||
End Function
|
||||
|
||||
Public Overrides Sub UpdateEntity()
|
||||
|
Loading…
x
Reference in New Issue
Block a user