Vincent Lejeune
883ab43e29
Assume __VERSION >= 130 everywhere
2015-01-01 03:18:13 +01:00
Vincent Lejeune
c4e5a720f7
Do not undefine builtin macros.
2014-12-18 22:09:14 +01:00
samuncle
91736e1941
Add the support for emit map. For the moment it's only for solid objects
2014-11-22 15:59:22 +01:00
Vincent Lejeune
44792a1490
Fix splatting
2014-10-05 22:46:02 +02:00
Vincent Lejeune
019db1a11d
Revert "Revert "Prepare shader for specmap value""
...
This reverts commit 780482edba
.
2014-10-05 21:56:04 +02:00
vlj
5878cb35ec
Implement runtime detection of srgb bindless fix
2014-08-28 22:02:12 +02:00
Vincent Lejeune
6ac3d69471
Play with bindless textures
2014-08-22 23:48:28 +02:00
Vincent Lejeune
bcc2196ccf
Fix SSAO on splatting material.
2014-08-09 20:05:49 +02:00
Vincent Lejeune
58c094917e
Use an header included in every shaders.
2014-08-02 00:50:56 +02:00
Vincent Lejeune
55a5185796
Avoid drawing negative color with splatting material.
2014-07-12 21:25:11 +02:00
vlj
883b39591f
Width and height are passed by UBO
2014-05-17 02:39:55 +02:00
Vincent Lejeune
af862cb6c5
#version autoadded to shaders and turn some v120
2014-02-28 17:29:05 +01:00
Vincent Lejeune
0243546e4d
Use an openGL 3.3 compatibility context when available.
2014-02-12 22:16:10 +01:00
Vincent Lejeune
859be83074
Explicitly define fragment exported values.
2014-01-19 19:31:00 +01:00
Vincent Lejeune
fb6649eaad
texture2D is deprecated, use texture instead
2014-01-19 18:53:35 +01:00
Vincent Lejeune
dec2cb29ec
STKMesh: Support splatting
2014-01-18 19:03:10 +01:00
vincentlj
e6d774a3ac
OGL32CTX: Remove implicitly defined uniforms in splatting
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14981 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2014-01-09 17:08:15 +00:00
vincentlj
42c16b32cb
OGL32CTX: Replace deprecated "varying" by in/out semantic and make them explicit.
...
gl_Texcoord[]/gl_Color should be explocitly passed as in/out.
Compilers can pack varyings if the architecture does benefit from it (for instance intel mesa driver) but on the other hand they usually don't change size of varying even if there is only a single component used.
So storing vec2 into vec4 may waste performances.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14974 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2014-01-09 00:17:28 +00:00
vincentlj
c2b18a0a1c
Light: Export the correct value for specmap in grass/splatting shaders
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14789 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-25 20:48:27 +00:00
vincentlj
3a6e75b656
Light: Fix skybox bug with specmap and update grass/splatting shader
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14788 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-25 20:40:14 +00:00
vincentlj
45db87de8a
Merge normals and depth RTT into a single one
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14754 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-23 16:59:55 +00:00
auria
118705f19a
Apply patch by Vlj to put normals in eyespace coordinates and reenable normal mapping, thanks!
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14737 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-19 00:13:17 +00:00
auria
5899a26aad
Merge cand's graphical improvements branch!! There are many known issues folks, so don't cry victory just now, this is just the beginning. Especially, shadows do not work correctly at this time
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14590 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-11-30 21:33:06 +00:00
samuncle
bc0724935e
Add copyright header to each shader
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14395 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-11-06 23:17:18 +00:00
curaga
2d50b47f56
Shader space cleanup
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12881 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-06-18 14:35:29 +00:00
auria
98d8ef74ac
Simplify shader, removing the need to make a fallback mesh
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12565 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-03-18 00:21:28 +00:00
auria
fd49ecb3d6
Add support for vertex colors in splattig shader
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10455 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-20 16:58:12 +00:00
auria
5c52a4e855
Attempt fix in splatting shader
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10454 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-20 01:47:40 +00:00
auria
683b0e1903
Improve Lambert shading in splatting : actually use the sun direction
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10438 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-18 02:39:05 +00:00
auria
1ce4443ed8
Add lambert lighting to the splatting shader to make it look less flat
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10435 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-18 00:48:35 +00:00
auria
3e440fd88d
Improve how normal maps work on movimng objects
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10312 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-03 20:09:08 +00:00
auria
8799b3ca3b
Improve splatting
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10283 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-30 19:34:37 +00:00
auria
47d0e01f12
Add initial splatting support
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10282 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-30 16:56:04 +00:00