Code: Select all
extern float depth;
varying vec4 vpos;
#ifdef VERTEX
vec4 position(mat4 transform_projection, vec4 vertex_position)
{
vpos = transform_projection * vertex_position;
vpos.z = depth;
return vpos;
}
#endif
#ifdef PIXEL
vec4 effect( vec4 color, Image tex, vec2 texture_coords, vec2 screen_coords )
{
// texture_coords += vec2(vpos.x, vpos.y);
vec4 texcolor = Texel(tex, texture_coords);
return texcolor * color;
}
#endif
but i have problem with alpha color. with this shader there is no reaction to changing the alpha for the color