Vladimír Vondruš
e3841ade7e
Shaders: object and primitive ID visualization in MeshVisualizer.
6 years ago
Vladimír Vondruš
5b569942b8
Shaders: tangent space visualization in MeshVisualizer3D.
6 years ago
Vladimír Vondruš
74c75178de
Shaders: add a 2D variant of MeshVisualizer.
6 years ago
Vladimír Vondruš
f3a92c2afb
Shaders: rethink generic attribute allocation from scratch.
...
This adds binormals, object IDs and instanced transformation, but has to
break existing locations in order to provide new guarantees.
6 years ago
Vladimír Vondruš
9315175a72
Shaders: avoid MeshVisualizer::VertexIndex reusing a generic color slot.
...
Can't really future-proof that, so just adding a lot of comments
everywhere.
7 years ago
Vladimír Vondruš
6ffda8f123
Shaders: fix MeshVisualizer wireframe rendering on WebGL 2.
...
It's not ideal yet (warnings about unused uniforms), but I won't handle
these until I have complete rendering tests.
7 years ago
Vladimír Vondruš
e6b7aa12fa
Updated copyright year.
7 years ago
Vladimír Vondruš
0e9cb6945e
Shaders: define reasonable uniform defaults for all shaders.
...
Plus a bit of cleanup / fixing broken English.
8 years ago
Vladimír Vondruš
623fa97970
Updated copyright year.
8 years ago
Vladimír Vondruš
7a16273e5d
Updated copyright year.
9 years ago
Vladimír Vondruš
23646e6690
Hell, this project is big.
10 years ago
Vladimír Vondruš
8c2eaea406
Shaders: more shader code cleanup.
...
Fixed random potential GLSL ES issues, reduced preprocessor madness.
11 years ago
Vladimír Vondruš
6488fe6e75
Oh, it's 2015 already.
11 years ago
Vladimír Vondruš
4a44d3b875
Shaders: fix compilation of MeshVisualizer on WebGL and ANGLE.
...
WebGL mandates that array subscription is done with constant expression,
ANGLE too (but I think that has also something to do with D3D9
limitations). This is however allowed by OpenGL ES 2.0 specification, so
enabling the workaround only for WebGL and ANGLE (i.e., this won't apply
to Native Client using native GL drivers).
12 years ago
Vladimír Vondruš
80d93728f6
Shaders: fix MeshVisualizer on ES3.
...
I wonder why this issue didn't appear before.
12 years ago
Vladimír Vondruš
6f0ba96cb6
Happy new year too.
12 years ago
Vladimír Vondruš
45a10cefdf
Making includes absolute, part 1: moving files around.
...
Everything what was in src/ is now in src/Corrade, everything from
src/Plugins is now in src/MagnumPlugins, everything from external/ is in
src/MagnumExternal. Added new CMakeLists.txt file and updated the other
ones for the moves, no other change was made. If MAGNUM_BUILD_DEPRECATED
is set, everything compiles and installs like previously except for the
plugins, which are now in MagnumPlugins and not in Magnum/Plugins.
12 years ago
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