Commit Graph

979 Commits (0.17)
 

Author SHA1 Message Date
Thibault Lemaire e077596cd7
Fix typos in Working with Lights: The normal matrix
Noticed those while following the tutorial, didn't do a thorough check though, so there could be others.
2 years ago
Ben Hansen b871a5070b modified build-wasm.sh to not run wasm-pack in "parallel" 2 years ago
sotrh 66096d6f81
Merge pull request #334 from sotrh/web2
Web2
2 years ago
Ben Hansen ef6ec265d8 Merge branch 'master' into web2 2 years ago
Ben Hansen 1135fead3a updated intermediate tutorial docs and removing tutorial13 for maintenance 2 years ago
Ben Hansen dbb24ac7ce migrated tutorial13 code 2 years ago
Ben Hansen d3d7da293d fixed #288 and keyboard/mouse buttons not working on wasm 2 years ago
Ben Hansen e8ce0e710d tutorial12-camera running in wasm (needs input fix) 2 years ago
sotrh dce8b9181b
Merge pull request #331 from doodlewind/fix
fix typo
2 years ago
Yifeng Wang cdf0b152b1 fix typo 2 years ago
Ben Hansen 0a28699d00 web examples working with vuepress 2 years ago
Ben Hansen 79ef88ca80 modified resources to use documents origin when making requests 2 years ago
sotrh 5ee3cf2dc2
Merge pull request #327 from roudy16/fix/normal-map-cardinality
enable right-handed normal maps
2 years ago
roudy16 2c4b3668cd address review comment 2 years ago
Ben Hansen dad581dce9 normal tutorial working on wgpu master 2 years ago
roudy16 212da09b15 enable right-handed normal maps 2 years ago
dependabot[bot] 97215e6db4
Bump url-parse from 1.5.3 to 1.5.10
Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.5.3 to 1.5.10.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](https://github.com/unshiftio/url-parse/compare/1.5.3...1.5.10)

---
updated-dependencies:
- dependency-name: url-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
sotrh f9b6704cc4
Merge pull request #322 from rokonio/patch-4
Add missing half_dir
2 years ago
sotrh 5d115f7492
Merge pull request #321 from rokonio/patch-2
Correct an error in the normal map tutorial
2 years ago
Ben Hansen bd8172d0a2 removed shaderc from gifs 2 years ago
Rokonio a9985c2f94
Add missing half_dir
The shader panics (see below) because `half_dir` is missing so I added it.
```
❯ cargo run
   Compiling graphic_rust v0.1.0 (/home/rokonio/dev/rust/graphic_rust)
    Finished dev [unoptimized + debuginfo] target(s) in 5.39s
     Running `target/debug/graphic_rust`
[2022-02-20T10:27:50Z ERROR wgpu::backend::direct] Handling wgpu errors as fatal by default
thread 'main' panicked at 'wgpu error: Validation Error

Caused by:
    In Device::create_shader_module
      note: label = `Shader`
    
Shader 'Shader' parsing error: no definition in scope for identifier: 'half_dir'
   ┌─ wgsl:93:57
   │
93 │     let specular_strength = pow(max(dot(tangent_normal, half_dir), 0.0), 32.0);
   │                                                         ^^^^^^^^ unknown identifier


    no definition in scope for identifier: 'half_dir'

', /home/rokonio/.cargo/registry/src/github.com-1ecc6299db9ec823/wgpu-0.12.0/src/backend/direct.rs:2273:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
```
2 years ago
Rokonio 411702cf17
Correct an error in the normal map tutorial
`wgpu::BindingType::Sampler` is a tuple like variant
2 years ago
Ben Hansen a9c8bf650f more-testing 2 years ago
Ben Hansen c269f46a0e testing some things 2 years ago
Ben Hansen b8b8444030 fixing some readme files and migrating the lighting code 2 years ago
Ben Hansen 6324e485f1 tutorials 1-9 now work with wasm 2 years ago
sotrh 214cdcfb68
Merge pull request #317 from rokonio/patch-1
Fix a typo
2 years ago
sotrh 5f98efef1f
Merge pull request #318 from dskkato/patch-1
Fix a minor typo in docs/tutorial13-threading
2 years ago
Daisuke Kato c09edf860e fix typo in docs/tutorial13-threading
Propably -> Probably
2 years ago
Rokonio 2b9e09d19d
Fix a typo 2 years ago
Ben Hansen 82d50cba6c finally migrated tutorial9 code 2 years ago
Ben Hansen 9811c4037e troubleshooting wasm failure 2 years ago
Ben Hansen 05767326d9 tutorial 9 working on desktop 2 years ago
sotrh eed8f014c2
Merge pull request #309 from jeffawang/remove-block-note
tut6: remove sentence about block decorator
2 years ago
sotrh 6a6a462484
Merge pull request #310 from mariankay/docs-surface-type-view
docs: surface: change frame.view to view
2 years ago
Marian Cichy f17d27dabd docs: surface: change frame.view to view
`frame.view` does not exist in the whole tutorial and is probably a remant
from older versions. The text is actually referring to `view`
2 years ago
Jeff Wang ed632adec8 tut6: remove sentence about block decorator 2 years ago
Ben Hansen 3492bb703f working on tutorial9 2 years ago
Ben Hansen cbce0a546e experimenting with loader on tutorial9 2 years ago
Ben Hansen 16d82909e3 adjusted indent on tutorial2 2 years ago
Ben Hansen 2bb9be1660 tutorials 2-8 now have working web examples 2 years ago
Ben Hansen 1e5a88fbee fixes #289 2 years ago
Ben Hansen a6f6a492e7 tutorial1 now has a web example 2 years ago
Ben Hansen 59f0ec16f0 migrated tutorial to use lib.r 2 years ago
sotrh 2ee7e082fa
Merge pull request #305 from yutannihilation/doc/const-vertex_attr_array
Add one more advice about vertex_attr_array! macro
2 years ago
sotrh ed202350b6
Added code example directly
I added this in case the link breaks.
2 years ago
sotrh 4b837c08de
Merge pull request #304 from yutannihilation/remove-padding-indices
Remove a padding in INDICES
2 years ago
Hiroaki Yutani 4368358033 Add one more advice about vertex_attr_array! macro 2 years ago
Hiroaki Yutani c06e1365cb Tweak description 2 years ago
Hiroaki Yutani 8c6c491b11 Remove padding in INDICES 2 years ago