diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2015-06-28 00:42:21 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2015-06-28 00:42:21 +0200 |
commit | 5904b538d7fd639429a450b0ad7928cd311213fd (patch) | |
tree | e8a84511c944e157400927cf9ece1c5271b2fd12 /assets/scripts | |
parent | 1d91c18466031a320b70828d84541b8094a2b486 (diff) |
Make cg_brighten more precise.
Diffstat (limited to 'assets/scripts')
-rw-r--r-- | assets/scripts/system_effects.shader | 35 |
1 files changed, 34 insertions, 1 deletions
diff --git a/assets/scripts/system_effects.shader b/assets/scripts/system_effects.shader index b5366a9..db153d8 100644 --- a/assets/scripts/system_effects.shader +++ b/assets/scripts/system_effects.shader @@ -689,10 +689,43 @@ gfx/misc/nopower } -gfx/brighten +gfx/brighten0 // x2 { { map *white blendFunc GL_DST_COLOR GL_ONE } } + +gfx/brighten1 // x1.5 +{ + { + map gfx/gray_128 + blendFunc GL_DST_COLOR GL_ONE + } +} + +gfx/brighten2 // x1.25 +{ + { + map gfx/gray_64 + blendFunc GL_DST_COLOR GL_ONE + } +} + +gfx/brighten3 // x1.125 +{ + { + map gfx/gray_32 + blendFunc GL_DST_COLOR GL_ONE + } +} + +gfx/brighten4 // x1.0625 +{ + { + map gfx/gray_16 + blendFunc GL_DST_COLOR GL_ONE + } +} + |