summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2015-06-28 00:42:21 +0200
committerPaweł Redman <pawel.redman@gmail.com>2015-06-28 00:42:21 +0200
commit5904b538d7fd639429a450b0ad7928cd311213fd (patch)
treee8a84511c944e157400927cf9ece1c5271b2fd12 /assets
parent1d91c18466031a320b70828d84541b8094a2b486 (diff)
Make cg_brighten more precise.
Diffstat (limited to 'assets')
-rw-r--r--assets/gfx/gray_128.jpgbin0 -> 284 bytes
-rw-r--r--assets/gfx/gray_16.jpgbin0 -> 283 bytes
-rw-r--r--assets/gfx/gray_32.jpgbin0 -> 283 bytes
-rw-r--r--assets/gfx/gray_64.jpgbin0 -> 283 bytes
-rw-r--r--assets/scripts/system_effects.shader35
5 files changed, 34 insertions, 1 deletions
diff --git a/assets/gfx/gray_128.jpg b/assets/gfx/gray_128.jpg
new file mode 100644
index 0000000..272b6ce
--- /dev/null
+++ b/assets/gfx/gray_128.jpg
Binary files differ
diff --git a/assets/gfx/gray_16.jpg b/assets/gfx/gray_16.jpg
new file mode 100644
index 0000000..8725021
--- /dev/null
+++ b/assets/gfx/gray_16.jpg
Binary files differ
diff --git a/assets/gfx/gray_32.jpg b/assets/gfx/gray_32.jpg
new file mode 100644
index 0000000..7f18e70
--- /dev/null
+++ b/assets/gfx/gray_32.jpg
Binary files differ
diff --git a/assets/gfx/gray_64.jpg b/assets/gfx/gray_64.jpg
new file mode 100644
index 0000000..a419769
--- /dev/null
+++ b/assets/gfx/gray_64.jpg
Binary files 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
+ }
+}
+