[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    playground/games/astrododge/data/shaders
From:       Rivo Laks <rivolaks () hot ! ee>
Date:       2008-07-25 16:57:33
Message-ID: 1217005053.259737.4932.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 837765 by rivol:

Support configurable bloom strength

 M  +2 -1      blur.frag  


--- trunk/playground/games/astrododge/data/shaders/blur.frag #837764:837765
@@ -1,4 +1,5 @@
 uniform float ramp;
+uniform float strength;
 uniform vec2 inverseTextureSize;
 
 uniform sampler2D inputTexture;
@@ -18,5 +19,5 @@
 
     BLURCODE
 
-    gl_FragColor = vec4(result, 1.0);
+    gl_FragColor = vec4(result * strength, 1.0);
 }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic