@Batvink :
To use the coloralpha with an additive sprite, you should use a shader. Baxslash has posted an shader for additive sprite and slpha, in the shader thread
Here is the shader :
additive.ps :
#ifdef GL_ES
#ifdef GL_FRAGMENT_PRECISION_HIGH
precision highp float;
#else
precision mediump float;
#endif
#endif
uniform sampler2D texture0;
varying vec4 colorVarying;
varying vec2 uvVarying;
void main()
{
gl_FragColor = texture2D(texture0, uvVarying) * colorVarying * colorVarying.a;
}
additive.vs :
attribute vec4 position;
attribute vec4 color;
attribute vec2 uv;
varying vec2 uvVarying;
varying vec4 colorVarying;
varying vec2 posVarying;
uniform mat4 agk_Ortho;
void main()
{
gl_Position = agk_Ortho * position;
posVarying = position.xy;
uvVarying = uv;
colorVarying = color;
}
You use it as a sprite shader with :
LoadShader(1,"additive.vs","additive.ps")
SetSpriteShader(1,1)
AGK2 tier1 - http://www.dracaena-studio.com