Commit Graph

10 Commits (45ecc06514a8e9f1bc99a0966d78f3ae6335b496)

Author SHA1 Message Date
Per Inge Mathisen aafe14fbc2 Add separate shader for models rendered for buttons to remove lighting effects from those.
Add support for per-pixel lighting. Patch reviewed by SafetyOff.
2010-12-28 23:35:57 +01:00
Per Inge Mathisen f5ea79ed3c Enable OpenGL lighting controlled through the vertex shader. Added two new script functions setSunPosition an setSunIntensity.
Added a new PIE file directive MATERIALS that sets material properties for a mesh level. Original patch reviewed by SafetyOff.
2010-12-26 22:12:53 +01:00
Per Inge Mathisen 4f85821bab Cache texture coordinate calculation on game start instead of doing them each frame. Do defensive structure stretching in the vertex shader. See ticket:2310 2010-12-05 16:17:26 +01:00
Per Inge Mathisen 7de25a9d5b Lay the groundwork for a more modern component drawing system. Removes support for OpenGL 1.x. See ticket:2310 2010-12-04 15:57:26 +01:00
Giel van Schijndel 0cbe0b2ccf team-color mask shader: reduce required shader version to 1.10
Reduce the required shader version for the team-color mask shader to
GLSL 1.10.  As a result we loose the invariance guarantee for produced
vertex data, but in our case that ''probably'' doesn't matter.

As a result of this change, non-compliant OpenGL implementations which
''claim'' GLSL 1.20 support (but don't provide it), will be able to work
again.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@11719 4a71c877-e1ca-e34f-864e-861f7616d084
2010-09-20 18:34:42 +02:00
Per Inge Mathisen d6baaff477 Add #version line to the tcmask vertex shader to avoid errors/warnings.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@11688 4a71c877-e1ca-e34f-864e-861f7616d084
2010-09-20 18:34:41 +02:00
Giel van Schijndel cecef2e1e7 vertex shader: don't use deprecated ftransform()
Replace the usage of the depecrated ftransform() function with an
equivalent expression along with the invariance guarantee.  Let the
shader compiler deal with optimising this expression.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@11676 4a71c877-e1ca-e34f-864e-861f7616d084
2010-09-17 11:44:57 +02:00
Giel van Schijndel 4cb7957bd0 Use native EOL to store the shaders
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@11670 4a71c877-e1ca-e34f-864e-861f7616d084
2010-09-16 11:05:20 +02:00
i-nod dda0f9f77b Enable or disable fog in TCMask shader depending on in-game state. Part of #851. Reviewed by Per.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10210 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-10 08:23:46 +01:00
i-nod 4ad78bf9b2 TCMask feature: shaders infrastructure and TCMask shader, FF fallback is supported for TCMask. Part of #851.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10179 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-07 08:34:17 +01:00