how to implemet a nice scanline effect using libgdx

Posted by Alexandre GUIDET on Game Development See other posts from Game Development or by Alexandre GUIDET
Published on 2013-10-26T15:58:32Z Indexed on 2013/10/26 16:10 UTC
Read the original article Hit count: 721

Filed under:

I am working on an old school platformer based on libgdx. My first attempt is to make a little texture and fill a rect above the whole screen, but it seems that I am messing arround with the orthographic camera (I use two camera, one for the tilemap and one to project the scanline filter). Sometime the texture is stuck on the tilemap and sometime it is too large and cover the whole screen in black.

Is my approach correct using two camera? Does someone have a solution to achieve this retro effect using libgdx (see maldita castilla)?


© Game Development or respective owner

Related posts about textures

Related posts about libgdx