Code: Select all
1 - ( 1 / z )
Code: Select all
love.graphics.setColor(1 - ( 1 / z ),1 - ( 1 / z ),1 - ( 1 / z ))
Any ideas?
Code: Select all
1 - ( 1 / z )
Code: Select all
love.graphics.setColor(1 - ( 1 / z ),1 - ( 1 / z ),1 - ( 1 / z ))
Code: Select all
local z = player.z - cell.z
Code: Select all
local fade = 1 / ( 1 + math.exp ( -z ) )
love.graphics.setColor ( fade, fade, fade )
Code: Select all
fade = 1 / (math.abs(player.z - cube.z) * 0.5)
Code: Select all
fade = 1 / (math.abs(player.z - cube.z) * settings.fade)
Users browsing this forum: No registered users and 5 guests