Skip to content

Commit

Permalink
p5py#308 was breaking 3D tests, reverted the changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tushar5526 committed Aug 16, 2021
1 parent 7e7acb3 commit 63b43c5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions p5/sketch/Vispy2DRenderer/openglrenderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,5 @@ def cleanup(self):
self.fbuffer.delete()

def _transform_vertices(self, vertices, local_matrix, global_matrix):
product = np.dot(np.dot(vertices, local_matrix.T), global_matrix.T)
# dehomogenize coordinates
return [np.divide(coord, coord[3])[:3] for coord in product]
return np.dot(np.dot(vertices, local_matrix.T), global_matrix.T)[:, :3]

0 comments on commit 63b43c5

Please sign in to comment.