Fixed particles, reduced light radius of visible light
This commit is contained in:
@@ -13,7 +13,7 @@ Shader.RadiusGradient = love.graphics.newShader[[
|
||||
float distance_y = pos_y - screen_coords.y / scale;
|
||||
float distance = sqrt( pow(distance_x,2) + pow(distance_y,2) ) ;
|
||||
if (distance < range){
|
||||
float alpha = 1-(2*distance/range);
|
||||
float alpha = 1-(5*distance/range);
|
||||
if (pixel.a > alpha){
|
||||
pixel.a = alpha;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user