Vladimír Vondruš
51db425bdb
Shaders: use generic definitions also in GLSL sources.
...
So each sourcs doesn't need to be manually rewritten each time the
generic definition changes.
13 years ago
Vladimír Vondruš
5542f82d9f
Shaders: set MeshVisualizer::VertexIndex attribute location to 3.
...
Locations 0, 1 and 2 will be reserved for positions, texture coordinates
and normals.
13 years ago
Vladimír Vondruš
20fd1f7afc
Shaders: really ported MeshVisualizer to ES.
13 years ago
Vladimír Vondruš
b9a72bd3d1
Shaders: ported MeshVisualizer to not require geometry shader.
...
Wireframe width and smoothness isn't ported yet, because I don't fully
understand the behavior of standard derivatives in fragment shader.
13 years ago
Vladimír Vondruš
173c2a8190
Shaders: added first version of MeshVisualizer shader.
...
Rudely written to work only with fairly recent extensions and nothing
less than GLSL 3.30. It requires geometry shaders for wireframe
rendering, without it it behaves the same as Shaders::Flat.
13 years ago
Vladimír Vondruš
c5ab86794b
Relicensing to MIT/Expat license, part 3: source files.
...
Added license header also to shader sources. Hopefully it won't harm
compilation times too much.
13 years ago
Vladimír Vondruš
b1a97ed134
TextureTools: initial rude implementation of distance field computation.
...
Not yet ported anywhere else than GL >= 3.3 with some GL 4.3 features.
Still, this closes #3 .
13 years ago