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

« back to all changes in this revision

Viewing changes to installer/builddata/springcontent/shaders/waterDynWave.fp

  • 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
 
!!ARBfp1.0
2
 
TEMP temp;
3
 
TEMP old,midFlow,flow1,flow2,flow3,flow4,flow,backgroundWave;
4
 
 
5
 
TEX old, fragment.texcoord[0], texture[0], 2D;
6
 
TEX midFlow, fragment.texcoord[1], texture[1], 2D;
7
 
TEX flow1, fragment.texcoord[2], texture[2], 2D;
8
 
TEX flow2, fragment.texcoord[3], texture[3], 2D;
9
 
TEX flow3, fragment.texcoord[4], texture[4], 2D;
10
 
TEX flow4, fragment.texcoord[5], texture[5], 2D;
11
 
TEX backgroundWave, fragment.texcoord[6], texture[6], 2D;
12
 
 
13
 
SUB old.x, old.x, old.z;
14
 
 
15
 
DP4 temp.x, midFlow,{1,1,1,1};
16
 
SUB old.x, old.x, temp.x;
17
 
 
18
 
MOV flow.x, flow1.x;
19
 
MOV flow.y, flow2.y;
20
 
MOV flow.z, flow3.z;
21
 
MOV flow.w, flow4.w;
22
 
 
23
 
DP4 temp.x, flow,{1,1,1,1};
24
 
ADD old.x, old.x, temp.x;
25
 
 
26
 
SUB temp, midFlow, flow;
27
 
DP4 temp.x, temp, temp;
28
 
 
29
 
MAD old.y, temp.x, 0.2, old.y;
30
 
MUL_SAT old.y, old.y, 0.99;
31
 
 
32
 
MIN temp.x, old.w, 2;
33
 
MUL_SAT temp.x, temp.x, 0.2;
34
 
 
35
 
LRP old.x, 0.995, old.x, backgroundWave.z;
36
 
LRP old.x, temp.x, -old.w, old.x;
37
 
 
38
 
MUL result.color, old, {1,1,0,0};
39
 
END
 
 
b'\\ No newline at end of file'