Commit Graph

303 Commits

Author SHA1 Message Date
Ben Hansen
ef6ec265d8 Merge branch 'master' into web2 2022-03-25 17:54:37 -06:00
Ben Hansen
1135fead3a updated intermediate tutorial docs and removing tutorial13 for maintenance 2022-03-25 17:26:42 -06:00
Ben Hansen
dbb24ac7ce migrated tutorial13 code 2022-03-25 15:02:24 -06:00
Ben Hansen
d3d7da293d fixed #288 and keyboard/mouse buttons not working on wasm 2022-03-25 13:51:50 -06:00
Ben Hansen
e8ce0e710d tutorial12-camera running in wasm (needs input fix) 2022-03-18 17:45:29 -06:00
Ben Hansen
0a28699d00 web examples working with vuepress 2022-03-13 17:42:28 -06:00
Ben Hansen
79ef88ca80 modified resources to use documents origin when making requests 2022-03-13 15:01:27 -06:00
roudy16
2c4b3668cd address review comment 2022-03-06 18:51:37 +00:00
Ben Hansen
dad581dce9 normal tutorial working on wgpu master 2022-03-05 21:24:36 -07:00
roudy16
212da09b15 enable right-handed normal maps 2022-03-01 21:50:15 +00:00
Ben Hansen
bd8172d0a2 removed shaderc from gifs 2022-02-25 15:44:23 -07:00
Ben Hansen
a9c8bf650f more-testing 2022-02-19 12:43:56 -07:00
Ben Hansen
c269f46a0e testing some things 2022-02-19 11:21:54 -07:00
Ben Hansen
b8b8444030 fixing some readme files and migrating the lighting code 2022-02-18 14:22:14 -07:00
Ben Hansen
6324e485f1 tutorials 1-9 now work with wasm 2022-02-18 13:36:21 -07:00
Ben Hansen
82d50cba6c finally migrated tutorial9 code 2022-02-13 20:19:55 -07:00
Ben Hansen
9811c4037e troubleshooting wasm failure 2022-02-13 13:31:00 -07:00
Ben Hansen
05767326d9 tutorial 9 working on desktop 2022-02-05 11:00:28 -07:00
Ben Hansen
3492bb703f working on tutorial9 2022-01-25 19:54:21 -07:00
Ben Hansen
cbce0a546e experimenting with loader on tutorial9 2022-01-25 19:54:21 -07:00
Ben Hansen
2bb9be1660 tutorials 2-8 now have working web examples 2022-01-25 19:54:21 -07:00
Ben Hansen
a6f6a492e7 tutorial1 now has a web example 2022-01-25 19:52:36 -07:00
Ben Hansen
59f0ec16f0 migrated tutorial to use lib.r 2022-01-25 19:52:33 -07:00
sotrh
4b837c08de
Merge pull request #304 from yutannihilation/remove-padding-indices
Remove a padding in INDICES
2022-01-15 15:15:24 -07:00
Hiroaki Yutani
8c6c491b11 Remove padding in INDICES 2022-01-11 22:50:25 +09:00
sotrh
46e8e882d4
Merge pull request #302 from yutannihilation/remove-is-updown-pressed
Remove is_{up,down}_pressed
2022-01-10 17:16:58 -07:00
Hiroaki Yutani
72446bc9ee Remove is_{up,down}_pressed 2022-01-11 07:48:51 +09:00
rhysd
853d44e257 remove unused constant NUM_INSTANCES 2022-01-11 02:59:31 +09:00
TonalidadeHidrica
0b9840e1ec Fix typo: w -> we 2022-01-04 03:44:01 +09:00
Ben Hansen
c0843b3f92 fixes #285 2021-12-29 11:57:29 -07:00
Ben Hansen
4ae6c3f89f added 0.12.md and examples now compile 2021-12-27 13:48:52 -07:00
Ben Hansen
a4ce6093b7 pong is working again 2021-12-27 13:02:05 -07:00
Ben Hansen
2073b0fbc1 updated to 0.12 2021-12-27 12:09:25 -07:00
Ben Hansen
3afb7099b2 Merge branch 'web' 2021-12-03 14:23:47 -07:00
Ben Hansen
bd6721dde2 some fixes to web 2021-12-03 14:18:06 -07:00
Ben Hansen
ccafb3f6e2 Merge branch 'master' of github.com:sotrh/learn-wgpu 2021-12-03 10:59:12 -07:00
Ben Hansen
ac73aee9f5 Merge branch 'web' 2021-12-03 10:58:49 -07:00
Benoît Vermont
9ba4795d9c
Fix challenge depth buffer challenge
The shader.wgsl contains entry point `vs_main` and `fs_main`, but the rust code would reference them `main` and `main`

It would cause the following crash when trying to run the code:
```
[2021-11-25T14:50:43Z ERROR wgpu::backend::direct] Handling wgpu errors as fatal by default
thread 'main' panicked at 'wgpu error: Validation Error

Caused by:
    In Device::create_render_pipeline
      note: label = `Render Pipeline`
    error matching VERTEX shader requirements against the pipeline
    unable to find entry point 'main'
```

This fixes it.
2021-11-25 15:56:52 +01:00
Newbyte
c189f75913
Fix challenge code for tutorial 3 crashing
Only one of the pipelines were actually adjusted, so let's fix that.
2021-11-22 18:46:43 +01:00
Ben Hansen
ba9147f654 example loading in vuepress 2021-11-06 18:30:22 -06:00
Ben Hansen
f25377f38b fixed fullscreen 2021-10-28 17:48:54 -06:00
Ben Hansen
592f9b3738 white text is hard to read on white background 2021-10-28 17:15:43 -06:00
Ferdinand Schäffler
a39f95af13 Converted code examples. 2021-10-27 12:58:05 +02:00
Ben Hansen
141c94f48a wasm now loading 2021-10-24 17:37:30 -06:00
Ben Hansen
0da913d253 wasm is building 2021-10-22 15:55:39 -06:00
Ben Hansen
e0e52584a6 fixed pong for 0.11 2021-10-15 12:05:03 -06:00
Ben Hansen
7cc67f5678 migrated to 0.11 2021-10-08 18:40:29 -06:00
Martino Fontana
11b24cebc5 model.rs: added "_bind_group" where appropriate 2021-09-25 21:52:42 +02:00
Ben Hansen
4adea9e790 fixed pong 2021-09-21 20:43:22 -06:00
sotrh
316c429d2f
Merge pull request #228 from VillSnow/patch-1
fix type name Camera to CameraUniform
2021-09-12 11:35:44 -06:00