Code: Select all
vec4 effect(vec4 color, Image texture, vec2 texture_coords, vec2 screen_coords)
{
vec4 texturecolor = Texel(texture, texture_coords);
return texturecolor * color;
}
Also, are there any special things I should know about the Image data type, I really want to learn anything you guys have to teach! =)