mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 23:46:22 -06:00
Update the build volume to render a checkerboard.
This commit is contained in:
parent
21c1bb2605
commit
444936a545
1 changed files with 5 additions and 8 deletions
|
@ -49,8 +49,8 @@ class BuildVolume(SceneNode):
|
|||
Resources.getPath(Resources.ShadersLocation, 'basic.vert'),
|
||||
Resources.getPath(Resources.ShadersLocation, 'grid.frag')
|
||||
)
|
||||
self._grid_material.setUniformValue('u_gridColor0', Color(1.0, 1.0, 1.0, 1.0))
|
||||
self._grid_material.setUniformValue('u_gridColor1', Color(0.0, 0.0, 0.0, 1.0))
|
||||
self._grid_material.setUniformValue('u_gridColor0', Color(255, 255, 255, 255))
|
||||
self._grid_material.setUniformValue('u_gridColor1', Color(140, 170, 240, 255))
|
||||
|
||||
#renderer.queueNode(self, material = self._material, transparent = True)
|
||||
renderer.queueNode(self, mesh = self._grid_mesh, material = self._grid_material)
|
||||
|
@ -158,9 +158,6 @@ class BuildVolume(SceneNode):
|
|||
Vector(minW, minH, minD)
|
||||
)
|
||||
self._grid_mesh = mb.getData()
|
||||
self._grid_mesh.setVertexUVCoordinates(0, 0.0, 0.0)
|
||||
self._grid_mesh.setVertexUVCoordinates(1, 1.0, 1.0)
|
||||
self._grid_mesh.setVertexUVCoordinates(2, 0.0, 1.0)
|
||||
self._grid_mesh.setVertexUVCoordinates(3, 0.0, 0.0)
|
||||
self._grid_mesh.setVertexUVCoordinates(4, 1.0, 1.0)
|
||||
self._grid_mesh.setVertexUVCoordinates(5, 1.0, 0.0)
|
||||
for n in range(0, 6):
|
||||
v = self._grid_mesh.getVertex(n)
|
||||
self._grid_mesh.setVertexUVCoordinates(n, v[0], v[2])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue