Commit Graph

5 Commits

Author SHA1 Message Date
Svenn-Arne Dragly
00e0996e8d Make opengl_to_wgpu_matrix into a constant 2019-07-08 10:36:25 +02:00
Svenn-Arne Dragly
a113e5b78a Add conversion matrix from OpenGL to wgpu
The matrices in the examples are given in an OpenGL-like coordinate system,
while a Vulkan-like coordinate system is used by wgpu. This was previously
partially corrected in the shader and by flipping the up axis of the camera,
but left the x-axis mirrored in the final result.

This change adds a conversion matrix to framework.rs that can be used
to convert from OpenGL to wgpu. This also allows us to set the
winding-order to counter-clockwise, which matches the ordering in the data.
2019-07-05 17:47:37 +02:00
Joshua Groves
774dbcd99a Run cargo fmt 2019-06-11 21:02:30 -04:00
kyren
02dc7b26c9 Update wgpu-rs to reflect latest wgpu API 2019-05-16 03:22:20 -04:00
Dzmitry Malyshau
72164c23a2 Move the library and examples from the original repo 2019-05-10 13:19:33 -04:00