Vladimír Vondruš
623fda0dc7
Shaders: removed superfluous `*Shader` suffix from class names.
13 years ago
Vladimír Vondruš
14c6790701
Shaders: set default values for VertexColorShader uniforms.
...
Default value for matrix uniform would be zero uniform which would cause
"black screen of death".
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š
f9f95946b1
Shaders: 3D version of VertexColorShader.
...
Fragment shader can be shared for 2D and 3D version, modified the
sources accordingly.
14 years ago
Vladimír Vondruš
7a894e97a0
Using ARB_explicit_uniform_location in shaders.
...
The backwards compatibility fully kills the purpose, but at least I can
test the feature somewhere :-)
14 years ago
Vladimír Vondruš
231c002838
Explicitly use *Matrix in names when appropriate.
...
* In shader uniforms (projectionMatrix makes more sense than projection
alone)
* For underlying types for SceneGraph transformation. It is already
used in Drawable::clean() as transformationMatrix, so why not use it
also in AbstractFeature::clean(). Moreover, clean() could be in
future also done using something else, this helps to distinguish the
type just from parameter name.
* In Physics shapes - applyTransformationMatrix() (as it could be in
future also done using something else).
14 years ago
Vladimír Vondruš
17ee1d7fd8
Shaders: portable vertex color shader (currently 2D only).
14 years ago
Vladimír Vondruš
81b69f17e1
Shaders: another iteration in porting of Phong and Flat shaders to GLES.
...
Hope the reduced precision won't hurt.
14 years ago
Vladimír Vondruš
6f6d3d09b2
Blind port of FlatShader to OpenGL 2.1 and OpenGL ES 2.0.
14 years ago
Vladimír Vondruš
d46bc34390
Moved flat shader from internal physics implementation to Shaders.
...
It is so general that it can be reused elsewhere.
14 years ago
Vladimír Vondruš
f85a7fc568
Physics: Minimal initial implementation of debug draw.
14 years ago