mkxp/shader
Jonas Kulla 56226c40c6 Tilemap: Use vertex shader based autotile animation strategy
Previously, we would just stuff the entire tilemap vertex data
four times into the buffers, with only the autotile vertices
offset according to the animation frame. This meant we could
prepare the buffers once, and then just bind a different offset
for each animation frame without any shader changes, but it also
lead to a huge amount of data being duplicated (and blowing up
the buffer sizes).

The new method only requires one buffer, and instead animates by
recognizing vertices belonging to autotiles in a custom vertex
shader, which offsets them on the fly according to the animation
index.

With giant tilemaps, this method would turn out to be a little
less efficient, but considering the Tilemap is planned to be
rewritten to only hold the range of tiles visible on the screen
in its buffers, the on the fly offsetting will become neglient,
while at the same time the amount of data we have to send to the
GPU everytime the tilemap is updated is greatly reduced; so a
net win in the end.
2014-07-06 19:44:19 +02:00
..
bitmapBlit.frag BltShader: Correct algorithm as provided my /cremno 2014-01-31 10:08:05 +01:00
blur.frag Implement Bitmap 'blur' 2013-10-01 18:12:52 +02:00
blurH.vert Fix shader code. Thanks Mesa! 2013-10-02 15:00:17 +02:00
blurV.vert Fix shader code. Thanks Mesa! 2013-10-02 15:00:17 +02:00
flashMap.frag Simplify shader 2013-09-23 14:12:11 +02:00
hue.frag Remove the remaining bits of deprecated GL usage 2013-09-23 07:50:22 +02:00
plane.frag Fix shader code. Thanks Mesa! 2013-10-02 15:00:17 +02:00
simple.frag Remove the remaining bits of deprecated GL usage 2013-09-23 07:50:22 +02:00
simple.vert Remove unneeded shader uniform 2013-09-28 15:41:09 +02:00
simpleAlpha.frag Remove the remaining bits of deprecated GL usage 2013-09-23 07:50:22 +02:00
simpleColor.frag Remove the remaining bits of deprecated GL usage 2013-09-23 07:50:22 +02:00
simpleColor.vert Remove the remaining bits of deprecated GL usage 2013-09-23 07:50:22 +02:00
simpleMatrix.vert Port over Bitmap 'radial_blur' from old SFML codebase 2013-10-01 12:03:20 +02:00
sprite.frag GLSL 100 doesn't do automatic type conversions.. (int to float) 2013-12-31 16:26:49 -05:00
sprite.vert Remove the remaining bits of deprecated GL usage 2013-09-23 07:50:22 +02:00
tilemap.vert Tilemap: Use vertex shader based autotile animation strategy 2014-07-06 19:44:19 +02:00
trans.frag Remove the remaining bits of deprecated GL usage 2013-09-23 07:50:22 +02:00
transSimple.frag Remove the remaining bits of deprecated GL usage 2013-09-23 07:50:22 +02:00