summaryrefslogtreecommitdiff
path: root/assets/scripts
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2015-06-27 19:59:02 +0200
committerPaweł Redman <pawel.redman@gmail.com>2015-06-27 19:59:02 +0200
commit1d91c18466031a320b70828d84541b8094a2b486 (patch)
treee5ed8092fd65756cbb3cc81745877808aa69970a /assets/scripts
parent9f6a3c3c4c0d8c50f7e380feeb93e860af17638f (diff)
Implement cg_brighten.
Diffstat (limited to 'assets/scripts')
-rw-r--r--assets/scripts/aw_level1.shader10
-rw-r--r--assets/scripts/system_effects.shader9
2 files changed, 10 insertions, 9 deletions
diff --git a/assets/scripts/aw_level1.shader b/assets/scripts/aw_level1.shader
index 33ce967..5a7d570 100644
--- a/assets/scripts/aw_level1.shader
+++ b/assets/scripts/aw_level1.shader
@@ -1,15 +1,7 @@
gfx/level1/warpOverlay
{
{
- map gfx/level1/warpOverlay.jpg
- blendFunc GL_DST_COLOR GL_ONE
- }
- {
- map gfx/level1/warpOverlay.jpg
- blendFunc GL_DST_COLOR GL_ONE
- }
- {
- map gfx/level1/warpOverlay.jpg
+ map *white
blendFunc GL_ONE_MINUS_DST_COLOR GL_ONE_MINUS_SRC_COLOR
}
}
diff --git a/assets/scripts/system_effects.shader b/assets/scripts/system_effects.shader
index fce90a2..b5366a9 100644
--- a/assets/scripts/system_effects.shader
+++ b/assets/scripts/system_effects.shader
@@ -687,3 +687,12 @@ gfx/misc/nopower
rgbGen identity
}
}
+
+
+gfx/brighten
+{
+ {
+ map *white
+ blendFunc GL_DST_COLOR GL_ONE
+ }
+}