From 1d91c18466031a320b70828d84541b8094a2b486 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Sat, 27 Jun 2015 19:59:02 +0200 Subject: Implement cg_brighten. --- assets/scripts/aw_level1.shader | 10 +--------- assets/scripts/system_effects.shader | 9 +++++++++ 2 files changed, 10 insertions(+), 9 deletions(-) (limited to 'assets/scripts') 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 + } +} -- cgit