Fixed particles, reduced light radius of visible light

This commit is contained in:
lustlion
2022-02-21 18:48:24 +01:00
parent a944192f67
commit f0bc02c418
5 changed files with 16 additions and 14 deletions

View File

@@ -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;
}