Skip to content

Commit

Permalink
Reduce lossy artifacting
Browse files Browse the repository at this point in the history
  • Loading branch information
boatbomber committed Nov 14, 2021
1 parent c1220f9 commit 748f6c1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ local module = {}
local GuiPool = require(script.GuiPool)
local Util = require(script.Util)

local EMPTY_TABLE = {}

function module.new(ResX: number, ResY: number)
local Canvas = {
_ActiveFrames = 0,
Expand All @@ -14,7 +12,7 @@ function module.new(ResX: number, ResY: number)

local invX, invY = 1 / ResX, 1 / ResY
local diff = 0.015
local lossy = math.clamp(diff + ResY / 250, 0.02, 1)
local lossy = diff + (0.8 * ((ResY / 250)^2.5) + 0.02)

-- Generate initial grid of color data
local Grid = table.create(ResX)
Expand Down

0 comments on commit 748f6c1

Please sign in to comment.