From 9d197e848dd5df863081a55c462259d1e2120c94 Mon Sep 17 00:00:00 2001 From: RaveYard <29225776+MrRaveYard@users.noreply.github.com> Date: Sat, 16 Sep 2023 15:41:43 +0200 Subject: [PATCH] Fix sky dome getting randomly influenced by the lightmaps --- src/common/rendering/hwrenderer/data/hw_skydome.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/rendering/hwrenderer/data/hw_skydome.cpp b/src/common/rendering/hwrenderer/data/hw_skydome.cpp index cd8807b134..3c2b903fd9 100644 --- a/src/common/rendering/hwrenderer/data/hw_skydome.cpp +++ b/src/common/rendering/hwrenderer/data/hw_skydome.cpp @@ -178,6 +178,8 @@ void FSkyVertexBuffer::SkyVertexDoom(int r, int c, bool zflip) vert.y = z - 1.f; vert.z = pos.Y; + vert.lindex = -1; + mVertices.Push(vert); } @@ -210,6 +212,8 @@ void FSkyVertexBuffer::SkyVertexBuild(int r, int c, bool zflip) vert.y = z - 1.f; vert.z = pos.Y; + vert.lindex = -1; + mVertices.Push(vert); }