Vladimír Vondruš
623fa97970
Updated copyright year.
8 years ago
Vladimír Vondruš
7a16273e5d
Updated copyright year.
9 years ago
Vladimír Vondruš
d6f5f43d60
Shaders: modernize coding style.
...
* Always prefix private members with an underscore
* Use in-class initialization of the uniform locations
* Use {} for default flag value
9 years ago
Vladimír Vondruš
23646e6690
Hell, this project is big.
10 years ago
Vladimír Vondruš
da2ac00478
Shaders: ability to do alpha-masking with Phong.
...
All Color3 parameters are now Color4, but the API should be backwards
compatible as Color4 is implicitly convertible from Color3.
11 years ago
Vladimír Vondruš
fc5ddeebbf
Shaders: ability to have both color and texture in Phong.
...
Also probably fixed a few issues when compiling the shader on older GLSL
(missing precision qualifiers). And less crazy preprocessor.
11 years ago
Vladimír Vondruš
6488fe6e75
Oh, it's 2015 already.
11 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.
13 years ago
Vladimír Vondruš
2c0e7da5a0
Shaders: fix compilation of textured Phong shader on OpenGL ES.
13 years ago
Vladimír Vondruš
51ca4be9a9
Shaders: fix Phong shader compilation for more than one texture.
13 years ago
Vladimír Vondruš
fd1d067c36
Shaders: fix textured Phong for GLSL 1.20 and GLSL ES 1.0.
...
I desperately need unit tests for shader compilation.
13 years ago
Vladimír Vondruš
f166d006c2
Shaders: `const` for readonly variables is since GLSL 4.20.
13 years ago
Vladimír Vondruš
41f7784dc5
Shaders: ambient, diffuse and specular texture support in Phong.
13 years ago
Vladimír Vondruš
623fda0dc7
Shaders: removed superfluous `*Shader` suffix from class names.
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š
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š
69ee2f3ebb
Shaders: don't compare ints and floats.
...
Fails on GLSL ES.
14 years ago
Vladimír Vondruš
57f3175b06
Shaders: GLSL ES doesn't have default values for uniforms.
...
If targetting GLSL ES the values are set on initialization explicitly
from application.
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š
084294e60b
Blind port of PhongShader to OpenGL ES 2.0.
14 years ago
Vladimír Vondruš
5ad3844626
PhongShader: fall back to GLSL 1.20 if 3.30/3.20 is not supported.
14 years ago
Vladimír Vondruš
4152e1fc9d
Better ability to create portable shaders.
...
Now the #version string is added from Shader class itself, making it
possible to do workarounds for older versions more conveniently. As a
consequence, #version must not be part of shader source anymore.
14 years ago
Vladimír Vondruš
d1f5ec7479
Phong shader: finally fixed specular highlights.
...
The highlights are now based on camera position, which is finally the
way it should be since forever.
14 years ago
Vladimír Vondruš
c91ecbef1e
Phong shader: simplified uniforms, added default values.
14 years ago
Vladimír Vondruš
5c9310605a
Finally fixed light intensity computation bug in PhongShader.
...
Both vectors passed to dot() (and thus also reflect()) must be
normalized to achieve desired result.
14 years ago
Vladimír Vondruš
5818a76850
New library with sample shaders, currently only Phong shader.
14 years ago