From 5904b538d7fd639429a450b0ad7928cd311213fd Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Sun, 28 Jun 2015 00:42:21 +0200 Subject: Make cg_brighten more precise. --- assets/gfx/gray_128.jpg | Bin 0 -> 284 bytes assets/gfx/gray_16.jpg | Bin 0 -> 283 bytes assets/gfx/gray_32.jpg | Bin 0 -> 283 bytes assets/gfx/gray_64.jpg | Bin 0 -> 283 bytes assets/scripts/system_effects.shader | 35 ++++++++++++++++++++++++++++++++++- 5 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 assets/gfx/gray_128.jpg create mode 100644 assets/gfx/gray_16.jpg create mode 100644 assets/gfx/gray_32.jpg create mode 100644 assets/gfx/gray_64.jpg (limited to 'assets') diff --git a/assets/gfx/gray_128.jpg b/assets/gfx/gray_128.jpg new file mode 100644 index 0000000..272b6ce Binary files /dev/null and b/assets/gfx/gray_128.jpg differ diff --git a/assets/gfx/gray_16.jpg b/assets/gfx/gray_16.jpg new file mode 100644 index 0000000..8725021 Binary files /dev/null and b/assets/gfx/gray_16.jpg differ diff --git a/assets/gfx/gray_32.jpg b/assets/gfx/gray_32.jpg new file mode 100644 index 0000000..7f18e70 Binary files /dev/null and b/assets/gfx/gray_32.jpg differ diff --git a/assets/gfx/gray_64.jpg b/assets/gfx/gray_64.jpg new file mode 100644 index 0000000..a419769 Binary files /dev/null and b/assets/gfx/gray_64.jpg differ 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 + } +} + -- cgit