From a285710f5bdcfde6203e3997c275422f35aa84cf Mon Sep 17 00:00:00 2001 From: JappaWakka Date: Mon, 27 Sep 2021 22:51:48 +0200 Subject: [PATCH] Added OutsideStepModel --- P3D/P3D.vbproj | 1 + P3D/Resources/Models/BaseModel.vb | 3 +++ .../Models/Steps/OutsideStepModel.vb | 26 +++++++++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 P3D/Resources/Models/Steps/OutsideStepModel.vb diff --git a/P3D/P3D.vbproj b/P3D/P3D.vbproj index 2a348c6d1..6be83b1e6 100644 --- a/P3D/P3D.vbproj +++ b/P3D/P3D.vbproj @@ -30667,6 +30667,7 @@ + diff --git a/P3D/Resources/Models/BaseModel.vb b/P3D/Resources/Models/BaseModel.vb index 38c073197..92ae430c2 100644 --- a/P3D/Resources/Models/BaseModel.vb +++ b/P3D/Resources/Models/BaseModel.vb @@ -97,6 +97,7 @@ Public Shared StairsModel As StairsModel = New StairsModel() Public Shared DiagonalWallModel As DiagonalWallModel = New DiagonalWallModel() Public Shared HalfDiagonalWallModel As HalfDiagonalWallModel = New HalfDiagonalWallModel() + Public Shared OutsideStepModel As OutsideStepModel = New OutsideStepModel() Public Shared Function getModelbyID(ByVal ID As Integer) As BaseModel Select Case ID @@ -138,6 +139,8 @@ Return DiagonalWallModel Case 18 Return HalfDiagonalWallModel + Case 19 + Return OutsideStepModel Case Else Return BlockModel End Select diff --git a/P3D/Resources/Models/Steps/OutsideStepModel.vb b/P3D/Resources/Models/Steps/OutsideStepModel.vb new file mode 100644 index 000000000..298a2335a --- /dev/null +++ b/P3D/Resources/Models/Steps/OutsideStepModel.vb @@ -0,0 +1,26 @@ +Public Class OutsideStepModel + + Inherits BaseModel + + Public Sub New() + Me.ID = 19 + + Dim vertexData = New VertexPositionNormalTexture() { + New VertexPositionNormalTexture(New Vector3(-0.5, -0.25, 0.5), New Vector3(-1, 0, 0), New Vector2(1.0, 0.0)), 'e + New VertexPositionNormalTexture(New Vector3(-0.5, -0.5, 0.5), New Vector3(-1, 0, 0), New Vector2(1.0, 1.0)), 'h + New VertexPositionNormalTexture(New Vector3(-0.5, -0.5, -0.5), New Vector3(-1, 0, 0), New Vector2(0.0, 1.0)), 'a + New VertexPositionNormalTexture(New Vector3(-0.5, -0.5, 0.5), New Vector3(0, 0, 1), New Vector2(0.0, 1.0)), 'h + New VertexPositionNormalTexture(New Vector3(-0.5, -0.25, 0.5), New Vector3(0, 0, 1), New Vector2(0.0, 0.0)), 'e + New VertexPositionNormalTexture(New Vector3(0.5, -0.5, 0.5), New Vector3(0, 0, 1), New Vector2(1.0, 1.0)), 'c + New VertexPositionNormalTexture(New Vector3(0.5, -0.5, -0.5), New Vector3(1, 0, 0), New Vector2(1.0, 1.0)), 'b + New VertexPositionNormalTexture(New Vector3(0.5, -0.5, 0.5), New Vector3(1, 0, 0), New Vector2(0.0, 1.0)), 'c + New VertexPositionNormalTexture(New Vector3(-0.5, -0.25, 0.5), New Vector3(1, 0, 0), New Vector2(0.0, 0.0)), 'e + New VertexPositionNormalTexture(New Vector3(-0.5, -0.25, 0.5), New Vector3(0, 0, -1), New Vector2(1.0, 0.0)), 'e + New VertexPositionNormalTexture(New Vector3(-0.5, -0.5, -0.5), New Vector3(0, 0, -1), New Vector2(1.0, 1.0)), 'a + New VertexPositionNormalTexture(New Vector3(0.5, -0.5, -0.5), New Vector3(0, 0, -1), New Vector2(0.0, 1.0)) 'b + } + + Setup(vertexData) + End Sub + +End Class