Commit Graph

25 Commits

Author SHA1 Message Date
Dzmitry Malyshau
c2743c279e Wholesome update for wgpu-0.3 2019-08-21 23:51:09 -04:00
Rukai
88965efbbf remove usages of wgn in examples 2019-08-18 13:36:48 +10:00
Rukai
69a894e91a Update to latest wgpu-native commit 2019-08-18 12:19:49 +10:00
Rukai
53b5297bdc Cleanup examples by using wgpu::read_spirv instead of manually creating a Vec<u32> 2019-08-13 06:39:24 +10:00
Rukai
b17e85d063 Update to latest wgpu native 2019-08-11 11:44:09 +10:00
Layl
82469e13b2 Fix sampling in mipmap generation example (#57)
* Change min_filter in mipmap example to Nearest
2019-08-08 10:58:25 -04:00
Dzmitry Malyshau
5522c912f7 Switch msaa example samples to 4 2019-07-29 19:59:39 -04:00
Rukai
57aa4e3415 Remove unneeded TextureUsage 2019-07-24 21:37:15 +10:00
Paul Kernfeld
790b79a936 Add an example showing how to capture a render 2019-07-23 22:14:27 -04:00
Noah Hüsser
ce382f3735 Adapt to changes in wgpu for a configurable PresentMode.
Gl fixes.

Try fix this mess ..

GL fixess

Revert intermediate wgpu branch

Set proper wgpu-native commit ref

Adapt examples to the new features.
2019-07-17 21:27:32 +02:00
Svenn-Arne Dragly
00e0996e8d Make opengl_to_wgpu_matrix into a constant 2019-07-08 10:36:25 +02:00
Dzmitry Malyshau
11e2e37ec3 Use the correction matrix in shadow baking 2019-07-05 13:43:57 -04: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
Rukai
b235c9647f msaa-line example fixes 2019-06-24 21:59:42 +10:00
Rukai
60488d7b87 Rename msaa-linelist to msaa-line 2019-06-20 16:20:01 +10:00
Rukai
b15fcf11b1 Add MSAA + LineList example 2019-06-20 12:06:57 +10:00
Dzmitry Malyshau
84434103c0 Mipmap screenshot 2019-06-16 21:15:22 -07:00
Dzmitry Malyshau
3f29a6d957 Mipmap example shader and code fixes 2019-06-16 21:15:16 -07:00
Dzmitry Malyshau
e9f687014b Mipmapping example 2019-06-16 21:15:15 -07:00
Joshua Groves
774dbcd99a Run cargo fmt 2019-06-11 21:02:30 -04:00
kyren
8c53667572 Update for new wgpu PR, keep API slightly closer to vanilla 2019-06-06 15:46:02 -04:00
kyren
ae48fe07e0 Update API for in-progress wgpu-gl PR to wgpu / gfx 2019-06-06 15:46:02 -04:00
kyren
02dc7b26c9 Update wgpu-rs to reflect latest wgpu API 2019-05-16 03:22:20 -04:00
Paul Kernfeld
1db5b0af30 Rename hello_ examples to hello- (#2) 2019-05-14 21:29:31 -04:00
Dzmitry Malyshau
72164c23a2 Move the library and examples from the original repo 2019-05-10 13:19:33 -04:00