From 6810a35dfd6731553f91313379d924028f424f9f Mon Sep 17 00:00:00 2001 From: "Jasper \"JappaWakka\" Speelman" Date: Sat, 14 May 2022 14:45:01 +0200 Subject: [PATCH] Shaders now independent of daytime --- P3D/Content/SkyDomeResource/LightingColors.png | Bin 160 -> 158 bytes P3D/Entites/Entity.vb | 4 ++-- P3D/World/Shader.vb | 6 ------ 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/P3D/Content/SkyDomeResource/LightingColors.png b/P3D/Content/SkyDomeResource/LightingColors.png index e9c5531861ca3699e99b537f7cc433b838bf24dd..9b2596bd0e6f678da9967806461d67e868e2ef31 100644 GIT binary patch delta 69 zcmZ3$IFE5cf}N(Pi(?4K_0Urrc^M2iSPYGYxi{=T;xm6*OlE9pc|w|lqTf`N-Mf(!;chaF}{GPLX}lxW+%OzQuVySYMXYz&M~mu%bm b_pq&8g}cD+n2k@g7=Xaj)z4*}Q$iB}zatw7 diff --git a/P3D/Entites/Entity.vb b/P3D/Entites/Entity.vb index 99d766dfc..0b9455be3 100644 --- a/P3D/Entites/Entity.vb +++ b/P3D/Entites/Entity.vb @@ -473,9 +473,9 @@ If Not Screen.Level.World Is Nothing Then Select Case Screen.Level.World.EnvironmentType Case P3D.World.EnvironmentTypes.Outside - Me.Shader = SkyDome.GetDaytimeColor(True).ToVector3() + Me.Shader = New Vector3(1.0F) Case P3D.World.EnvironmentTypes.Dark - Me.Shader = New Vector3(0.5F, 0.5F, 0.6F) + Me.Shader = New Vector3(0.5F, 0.5F, 0.5F) Case Else Me.Shader = New Vector3(1.0F) End Select diff --git a/P3D/World/Shader.vb b/P3D/World/Shader.vb index ef58dac13..339f86158 100644 --- a/P3D/World/Shader.vb +++ b/P3D/World/Shader.vb @@ -11,12 +11,6 @@ Me.Size = Size Me.Shader = Shader Me.StopOnContact = StopOnContact - - If Screen.Level.World.EnvironmentType = World.EnvironmentTypes.Outside And World.GetTime() = 0 Then - Me.Shader.X += 0.2F - Me.Shader.Y += 0.2F - Me.Shader.Z += 0.5F - End If End Sub Public Sub ApplyShader(ByVal Entities() As Entity)