Hi,
I'm really interested in bloom shader but when I tried the test at Xith-tk i had a GLSL compile error at gaussian_h and gaussian_v files.
I downloaded GLSL specification and the error don't show anymore so I think it's solved (still i can't get bloom effect running)
I leave the patch code here so anyone can upload it.
Index: gaussian_h.glslfrag
===================================================================
--- gaussian_h.glslfrag (revision 1832)
+++ gaussian_h.glslfrag (working copy)
@@ -1,7 +1,7 @@
uniform sampler2D inTexture;
-vec2 pos[11] =
-{
+vec2 pos[11] = vec2[11]
+(
vec2( -5, 0 ),
vec2( -4, 0 ),
vec2( -3, 0 ),
@@ -13,10 +13,10 @@
vec2( +3, 0 ),
vec2( +4, 0 ),
vec2( +5, 0 )
-};
+);
-float samples[11] =
-{
+float samples[11] = float[11]
+(
0.01222447,
0.02783468,
0.06559061,
@@ -28,7 +28,7 @@
0.06559061,
0.02783468,
0.01222447
-};
+);
void main()
{
Index: gaussian_v.glslfrag
===================================================================
--- gaussian_v.glslfrag (revision 1832)
+++ gaussian_v.glslfrag (working copy)
@@ -1,7 +1,7 @@
uniform sampler2D inTexture;
-vec2 pos[11] =
-{
+vec2 pos[11] = vec2[11]
+(
vec2( 0, -5 ),
vec2( 0, -4 ),
vec2( 0, -3 ),
@@ -13,10 +13,10 @@
vec2( 0, 3 ),
vec2( 0, 4 ),
vec2( 0, 5 )
-};
+);
-float samples[11] =
-{
+float samples[11] = float[11]
+(
0.01222447,
0.02783468,
0.06559061,
@@ -28,7 +28,7 @@
0.06559061,
0.02783468,
0.01222447
-};
+);
void main()
{