An old tilemap shader written in 2012 to accompany a series of articles published on my blog from November to December 2012.
- Part 1 - What's a Tilemap exactly?
- Part 2 - Conceptual description using pseudo code
- Part 3 - Drawing tilemaps using quads and strips
- Part 4 - From Vertex and index buffers to shading
- Part 5 - A complete working rotating and scaling tilemap using a single sf::sprite
Disclaimer #1: I have no idea if this code still works with the current version of SFML
Disclaimer #2: This was my first ever shader, last time I had done graphic rendering was years before when I wrote the engine for VRally 2 on Dreamcast, so don't take the content of the code as an example of how things should be done, it's probably full of horrible things