Commit Graph

5 Commits

Author SHA1 Message Date
Jonas Kulla a53163660f Shader: Refine preprocessing on GLES platform
Don't globally set float precision to mediump, only fragment
shaders need that and defining it for vertex shaders causes
tilemap cracks.

Also manually define low precision for variables that hold
color / alpha values.
2014-12-31 18:52:19 +01:00
Edward Rudd a3c9f53335 GLSL 100 doesn't do automatic type conversions.. (int to float) 2013-12-31 16:26:49 -05:00
Jonas Kulla 19c30e3ddd Fix shader code. Thanks Mesa!
On the other hand, the kind of shit fglrx
just lets through boggles the mind.
2013-10-02 15:00:17 +02:00
Jonas Kulla 9e63fb6b64 Remove the remaining bits of deprecated GL usage
The drawing is now completely shader based, which makes away
with all usage of the depracted matrix stack. This also allows
us to do things like simple translations and texture coordinate
translation directly instead of doing everything indirectly
through matrices.

Fixed vertex attributes ('vertexPointer()' etc) are also
replaced with user defined attribute arrays.
2013-09-23 07:50:22 +02:00
Jonas Kulla ff25887f41 Initial commit 2013-09-01 16:27:21 +02:00