Skip to content

Commit

Permalink
fix: lights z-fighting
Browse files Browse the repository at this point in the history
  • Loading branch information
notreux committed Aug 30, 2023
1 parent 83ad3c6 commit cd502a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Classes/Internal/LightingEnvironment.luau
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down

0 comments on commit cd502a2

Please sign in to comment.