101 |
|
|
102 |
END |
END |
103 |
"""), |
"""), |
104 |
|
GL.createProgram( |
105 |
|
"""!!ARBfp1.0 |
106 |
|
|
107 |
|
TEMP p, bp; |
108 |
|
MAD p, fragment.texcoord[5].w, fragment.texcoord[5].w, fragment.texcoord[0]; |
109 |
|
TEX result.color, p, texture[0], 2D; |
110 |
|
|
111 |
|
END |
112 |
|
"""), |
113 |
] |
] |
114 |
|
|
115 |
dump(fp[0].getProgId()) |
dump(fp[0].getProgId()) |
129 |
) |
) |
130 |
|
|
131 |
def scene(self, vs): |
def scene(self, vs): |
132 |
putnoc(vs, background((.5,.5,.5))) |
putnoc(vs, background((.5,.8,.5))) |
133 |
|
|
134 |
rot = vs.rotateCS(0, "r", self.ang) |
rot = vs.rotateCS(0, "r", self.ang) |
135 |
d = 1. / self.ps |
d = 1. / self.ps |
186 |
""" % locals()), csg) |
""" % locals()), csg) |
187 |
|
|
188 |
cs1 = vs.affineCS(rot, "1", 0, self.x, self.y, |
cs1 = vs.affineCS(rot, "1", 0, self.x, self.y, |
189 |
80, 0, 0, 80) |
600, 0, 0, 600) |
190 |
|
|
191 |
if self.texfilt: |
if self.texfilt: |
192 |
minfilt = "LINEAR_MIPMAP_LINEAR" |
minfilt = "LINEAR_MIPMAP_LINEAR" |