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.
11 lines
234 B
GLSL
11 lines
234 B
GLSL
vec3 lighting(vec3 normal);
|
|
vec4 postouv1(vec4 pos);
|
|
|
|
void main()
|
|
{
|
|
gl_FrontColor = vec4(lighting(gl_Normal),1.0) * gl_Color;
|
|
gl_TexCoord[0] = gl_MultiTexCoord0;
|
|
gl_TexCoord[1] = postouv1(gl_Vertex);
|
|
gl_Position = ftransform();
|
|
}
|