diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-06-10 18:19:30 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-06-10 18:19:35 +0200 |
commit | a0152f2c253dbf3c2c23d83a261d89e97310b430 (patch) | |
tree | 473ae66f3dd436116c5ec7ef4a62f56fec70f85f /shaders | |
parent | 1baf69083d740f50eba0de13b366977a07dacbf3 (diff) |
shaders: add commented out broken formula
Diffstat (limited to 'shaders')
-rw-r--r-- | shaders/lightmap.frag | 3 |
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); } |