From cd502a2a236007b8ed5bc8d510d4e2b12c7d0911 Mon Sep 17 00:00:00 2001 From: TheHackerPuppy Date: Thu, 31 Aug 2023 01:35:06 +0200 Subject: [PATCH] fix: lights z-fighting --- src/Classes/Internal/LightingEnvironment.luau | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Classes/Internal/LightingEnvironment.luau b/src/Classes/Internal/LightingEnvironment.luau index df5ec4f..50db4d9 100644 --- a/src/Classes/Internal/LightingEnvironment.luau +++ b/src/Classes/Internal/LightingEnvironment.luau @@ -56,6 +56,7 @@ function lightingEnvironment:DrawPixels(pixelSize: number) bigPixel.BackgroundTransparency = self.AmbientTransparency bigPixel.BackgroundColor3 = self.AmbientColor bigPixel.BorderSizePixel = 0 + bigPixel.ZIndex = 1000 local canvas = Instance.new("Frame") canvas.Name = "Canvas" @@ -74,6 +75,7 @@ function lightingEnvironment:DrawPixels(pixelSize: number) for y = 0, iterations - 1 do local px = pixel:Clone() px.Parent = canvas + px.ZIndex = 1000 px.Position = UDim2.fromOffset(x * size, y * size) end end