forked from 0ad/0ad
Ykkrosh
207d54e825
Run with "-mod=official" for the default behaviour (same as specifying nothing), and with "-mod=official -mod=antigravity -mod=starwars" to load multiple mods (with the later-mentioned ones having a higher priority than the earlier ones). Added "_test.minimal" mod which can be used instead of "official" - it provides just enough for the actor viewer to run, plus one unit skin. Added test script for the COLLADA converter, which converts the models and creates some actors in a "_test.collada" mod. Then the actor viewer can be run with _test.minimal + _test.collada, to see if it's working correctly. This was SVN commit r4690.
24 lines
581 B
GLSL
24 lines
581 B
GLSL
uniform mat4 reflectionMatrix;
|
|
uniform mat4 refractionMatrix;
|
|
uniform vec4 translation;
|
|
|
|
attribute float vertexDepth;
|
|
attribute float losMultiplier;
|
|
|
|
varying vec3 worldPos;
|
|
varying float w;
|
|
varying float waterDepth;
|
|
varying float losMod;
|
|
|
|
void main()
|
|
{
|
|
worldPos = gl_Vertex.xyz;
|
|
waterDepth = vertexDepth;
|
|
losMod = losMultiplier;
|
|
gl_TexCoord[0] = gl_MultiTexCoord0 + translation;
|
|
gl_TexCoord[1] = reflectionMatrix * gl_Vertex; // projective texturing
|
|
gl_TexCoord[2] = reflectionMatrix * gl_Vertex;
|
|
w = gl_TexCoord[1].w;
|
|
gl_Position = ftransform();
|
|
}
|