I have a glsl 4 shader for a sort of bloom effect, but it hasn't been working, I think, because the grammar is of too new a version. If it worked it would solve his problem. Here it goes.

`#version 400`

in vec3 TexCoord;

layout (location = 0) out vec4 FragColor;

uniform BlobSettings {

vec4 innerColor;

vec4 outerColor;

float radiusInner;

float radiusOuter;

};

void main() {

float deltaX = TexCoord.x -.5;

float deltaY = TexCoord.y -.5;

float distance = sqrt(deltaX*deltaX +deltaY*deltaY);

FragColor = mix (innerColor, outerColor, smoothstep(radiusInner, radiusOuter, distance));

}

#version 400

layout (location = 0) in vec3 VertexPosition;

layout (location = 1) in vec3 VertexTexCoord;

out vec3 TexCoord;

void main() {

TexCoord = VextexTexCoord;

gl_Position = vec4(VertexPosition, 1.0);

}