~ubuntu-branches/ubuntu/natty/spring/natty

« back to all changes in this revision

Viewing changes to installer/builddata/springcontent/shaders/GroundDecals.vp

  • Committer: Bazaar Package Importer
  • Author(s): Scott Ritchie
  • Date: 2010-09-23 18:56:03 UTC
  • mfrom: (3.1.9 experimental)
  • Revision ID: james.westby@ubuntu.com-20100923185603-st97s5chplo42y7w
Tags: 0.82.5.1+dfsg1-1ubuntu1
* Latest upstream version for online play
* debian/control: Replace (rather than conflict) spring-engine
  - spring-engine will be a dummy package (LP: #612905)
  - also set maintainer to MOTU

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
!!ARBvp1.0
2
 
ATTRIB pos = vertex.position;
3
 
PARAM mat[4] = { state.matrix.mvp };
4
 
PARAM mat2[4] = { state.matrix.program[0] };
5
 
OUTPUT opos = result.position;
6
 
TEMP temp,temp2;
7
 
 
8
 
#calculate output position
9
 
DP4 opos.x, pos, mat[0];
10
 
DP4 opos.y, pos, mat[1];
11
 
DP4 opos.z, pos, mat[2];
12
 
DP4 opos.w, pos, mat[3];
13
 
 
14
 
DP4 result.fogcoord.x, pos, mat[2];
15
 
MOV result.color, vertex.color;
16
 
 
17
 
#calculate texture coords
18
 
MOV result.texcoord[0], vertex.texcoord[0];
19
 
MUL result.texcoord[1], pos.xzyw, program.env[10];                                              #shade texture
20
 
 
21
 
#calculate shadow texture coords
22
 
 
23
 
DP4 temp.x, pos, mat2[0];
24
 
DP4 temp.y, pos, mat2[1];
25
 
 
26
 
ABS temp2,temp;
27
 
ADD temp2,temp2,program.env[17];
28
 
RSQ temp2.x, temp2.x;
29
 
RSQ temp2.y, temp2.y;
30
 
ADD temp2,temp2,program.env[18];
31
 
MAD result.texcoord[2], temp, temp2,program.env[16];
32
 
 
33
 
DP4 result.texcoord[2].z, pos, mat2[2];
34
 
DP4 result.texcoord[2].w, pos, mat2[3];
35
 
END