summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--shaders/lightmap.frag3
1 files changed, 3 insertions, 0 deletions
diff --git a/shaders/lightmap.frag b/shaders/lightmap.frag
index 75815c0f..d560dcc6 100644
--- a/shaders/lightmap.frag
+++ b/shaders/lightmap.frag
@@ -17,5 +17,8 @@ void main() {
A = 1 - min(1, dist / I);
else if (falloff == 2) // quadratic
A = I/(1 + 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);
color = vec4(color_intensity.xyz, A);
}