A downloadable asset pack for Windows, macOS, Linux, and Android

Download NowName your own price

You are free to use the shader as you want.

No restrictions.

--------------------------------------------------------------

I neaded a shader to flash my sprites when they where hit so made this simple shader hack to use built in color commands.

Shader works in app game kit classic and app game kit studio.

If you do not want to download so is the full ps shader here.

This is for app game kit!!!!

//------------------------------------------------------------
// app game kit pixel shader hack to be able to flash sprites.
// this way can you use one and the same shader on all
// sprites.
// Control it with agk built in color commands where now // rgb 32 is rgb 255. ( use 32 on r,g,b as default)
// setspritecolor(id,red,green,blue,alph)
// setting rgb 255 will make the sprite very bright.
// sprites are slightly brighter at default now.
// This shader do nothing to the transparency.
//------------------------------------------------------------
uniform sampler2D texture0;
varying mediump vec2 uvVarying;
varying mediump vec4 colorVarying;
 
void main()
{
    vec4 light;
    light = colorVarying*vec4(8,8,8,1);        gl_FragColor = texture2D(texture0, uvVarying) * light;
}

Download

Download NowName your own price

Click download now to get access to the following files:

sprite_flash.zip 521 bytes

Development log

Comments

Log in with itch.io to leave a comment.

Thanks so much for sharing this. I am using it in my current AGK project for a special effect and it works like a charm.

Very nice to hear :)

As soon as all overtime at the factory slows down so do i hope i manage some more projects ;)