diff options
Diffstat (limited to 'shaders/lightmap.frag')
| -rw-r--r-- | shaders/lightmap.frag | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shaders/lightmap.frag b/shaders/lightmap.frag index d560dcc6..db1cf895 100644 --- a/shaders/lightmap.frag +++ b/shaders/lightmap.frag @@ -14,9 +14,9 @@ void main() { //float dist = sqrt(tmp.x*tmp.x + tmp.y*tmp.y); float A = 1; if (falloff == 0) // linear - A = 1 - min(1, dist / I); + A = I/(I + dist); else if (falloff == 2) // quadratic - A = I/(1 + I + dist*dist); + A = I/(I + dist*dist); //I = sqrt(color_intensity.w*1.5)*16; //dist = sqrt(tmp.x*tmp.x + tmp.y*tmp.y); //float alpha = 1 - min(1, dist / I); |
