mzechner wrote:we should totally put your contributions in our extensions and have them build with our stuff

kalle_h wrote:Updated.
http://dl.dropbox.com/u/10960490/bloom.jar
Added constuctor parameter useBlending. This will add alpha channel to fbo and
Added methods:
-CapturePause
-CaptureContinue
-setClearColor(with this glow over bloomed objects when using blending can be colored)


attribute vec4 a_position;
attribute vec4 a_color;
attribute vec2 a_texCoords;
varying vec4 v_color;
varying vec2 v_texCoords;
uniform mat4 u_scene_matrix;
void main()
{
v_color = a_color;
v_texCoords = a_texCoords;
gl_Position = u_scene_matrix * a_position;
}#ifdef GL_ES
precision mediump float;
#endif
varying vec4 v_color;
varying vec2 v_texCoords;
uniform sampler2D u_texture;
uniform float u_scene_alpha;
void main()
{
gl_FragColor = v_color * texture2D(u_texture, v_texCoords);
gl_FragColor.a = gl_FragColor.a * u_scene_alpha;
}Return to Libgdx Contributions
Users browsing this forum: skunktrader and 0 guests