/[gzz]/gzz/gfx/demo/fpfont.py
ViewVC logotype

Diff of /gzz/gfx/demo/fpfont.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9 by tjl, Fri Jan 24 15:52:07 2003 UTC revision 1.10 by jvk, Fri Jan 24 15:55:43 2003 UTC
# Line 69  GL.createProgram( Line 69  GL.createProgram(
69  TEMP p;  TEMP p;
70    
71  # Read the pixel and its neighbours  # Read the pixel and its neighbours
72  TXB p, fragment.texcoord[0], texture[0], 2D;  TEX p, fragment.texcoord[0], texture[0], 2D;
73    
74  MUL p.y, p.x, p.x;  MUL p.y, p.x, p.x;
75  MUL p.z, p.x, p.y;  MUL p.z, p.x, p.y;
76  MUL p.x, -2, p.z;  MUL p.x, -.666, p.z;
77  MAD p.x, 3, p.y, p.x;  MAD p.x, 1.666, p.y, p.x;
78    
79  MOV result.color, p.x;  MOV p.w, 1;
80    MOV result.color, p.xxxw;
81  END  END
82  """),  """),
83    
# Line 95  TXB bp, bp, texture[0], 2D; Line 96  TXB bp, bp, texture[0], 2D;
96  MUL p, p, fragment.texcoord[5].x;  MUL p, p, fragment.texcoord[5].x;
97  MAD p, bp, fragment.texcoord[5].z, p;  MAD p, bp, fragment.texcoord[5].z, p;
98    
99  SWZ result.color, p.xyz1;  SWZ result.color, p,x,y,z,1;
100    
101  END  END
102  ),  """),
103  ]  ]
104    
105  dump(fp[0].getProgId())  dump(fp[0].getProgId())

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26