172 |
|
|
173 |
sca = vs.matcher.add(vs.coords.scaleXYZ(rot, 1, 1, 0.01), "sca") |
sca = vs.matcher.add(vs.coords.scaleXYZ(rot, 1, 1, 0.01), "sca") |
174 |
|
|
|
self.putCells(vs, sca) |
|
|
|
|
175 |
vs.map.put(getDList(""" |
vs.map.put(getDList(""" |
176 |
Enable BLEND |
Enable BLEND |
177 |
PushAttrib ENABLE_BIT |
PushAttrib ENABLE_BIT |
179 |
BlendFunc SRC_ALPHA ONE_MINUS_SRC_ALPHA |
BlendFunc SRC_ALPHA ONE_MINUS_SRC_ALPHA |
180 |
Color 1 1 1 0.7 |
Color 1 1 1 0.7 |
181 |
PushMatrix |
PushMatrix |
182 |
Scale 1000 1000 1 |
Scale 1000 1000 2 |
183 |
Begin QUAD_STRIP |
Begin QUAD_STRIP |
184 |
Vertex 0.5 1 1000 |
Vertex 0.5 1 1000 |
185 |
Vertex 0.5 -1 1000 |
Vertex 0.5 -1 1000 |
190 |
PopAttrib |
PopAttrib |
191 |
"""), sca) |
"""), sca) |
192 |
|
|
193 |
|
self.putCells(vs, sca) |
194 |
|
|
195 |
putnoc(vs, getDList(""" |
putnoc(vs, getDList(""" |
196 |
PopAttrib |
PopAttrib |
197 |
""")) |
""")) |
210 |
Color 1 1 1 |
Color 1 1 1 |
211 |
""")) |
""")) |
212 |
|
|
213 |
|
if self.color: |
214 |
|
putnoc(vs, getDList(""" |
215 |
|
Color 1 1 1 |
216 |
|
""")) |
217 |
|
vs.map.put(cellTexRects[self.ind], cc[1][0]) |
218 |
|
vs.map.put(cellTexRects[self.ind], cc[1][1]) |
219 |
|
|
220 |
if self.conn: |
if self.conn: |
221 |
if self.color: |
if self.color: |
222 |
putnoc(vs, getDList(""" |
putnoc(vs, getDList(""" |
223 |
Color 1 0.6 0.6 |
Color 1 0.6 0.6 |
224 |
""")) |
""")) |
225 |
|
putnoc(vs, getDList(""" |
226 |
|
PushAttrib DEPTH_BUFFER_BIT |
227 |
|
DepthFunc ALWAYS |
228 |
|
""")) |
229 |
vs.map.put(connSmooths[self.ind], cc[0][1], cc[0][0]) |
vs.map.put(connSmooths[self.ind], cc[0][1], cc[0][0]) |
|
|
|
|
if self.color: |
|
230 |
putnoc(vs, getDList(""" |
putnoc(vs, getDList(""" |
231 |
Color 1 1 1 |
PopAttrib |
232 |
""")) |
""")) |
233 |
|
|
234 |
vs.map.put(cellTexRects[self.ind], cc[1][0]) |
|
|
vs.map.put(cellTexRects[self.ind], cc[1][1]) |
|
235 |
|
|
236 |
|
|
237 |
class AlphaCells: |
class AlphaCells: |