78 |
|
|
79 |
MOV result.color, p.x; |
MOV result.color, p.x; |
80 |
END |
END |
81 |
""") |
"""), |
82 |
|
|
83 |
|
GL.createProgram( |
84 |
|
"""!!ARBfp1.0 |
85 |
|
|
86 |
|
# Sharpen by extrapolating from a lod-biased blurred tex access. |
87 |
|
|
88 |
|
TEMP p, bp; |
89 |
|
|
90 |
|
TEX p, fragment.texcoord[0].xyxy, texture[0], 2D; |
91 |
|
MOV bp, fragment.texcoord[0].xyxy; |
92 |
|
MOV bp.w, fragment.texcoord[5].w; |
93 |
|
TXB bp, bp, texture[0], 2D; |
94 |
|
|
95 |
|
MUL p, p, fragment.texcoord[5].x; |
96 |
|
MAD p, bp, fragment.texcoord[5].z, p; |
97 |
|
|
98 |
|
SWZ result.color, p.xyz1; |
99 |
|
|
100 |
|
END |
101 |
|
), |
102 |
] |
] |
103 |
|
|
104 |
dump(fp[0].getProgId()) |
dump(fp[0].getProgId()) |
198 |
Enable TEXTURE_2D |
Enable TEXTURE_2D |
199 |
Color 1 1 1 |
Color 1 1 1 |
200 |
Begin QUAD_STRIP |
Begin QUAD_STRIP |
201 |
MultiTexCoord TEXTURE5 4 -.75 0 -1 |
MultiTexCoord TEXTURE5 4 -.75 -3 -1 |
202 |
Vertex 0 0 |
Vertex 0 0 |
203 |
Vertex 0 1 |
Vertex 0 1 |
204 |
MultiTexCoord TEXTURE5 1 0 0 0 |
MultiTexCoord TEXTURE5 1 0 0 0 |