Will Crichton
9e2ada2a0f
Simplify .filter(..).next()
to .find()
. Eliminate unnecessary lifetime parameter in Vertex::desc
2023-02-19 14:30:32 -08:00
Benjamin Hansen
9f2ecaec4a
added view_formats
details to the docs
2023-02-01 21:26:30 -07:00
Benjamin Hansen
09207e9403
changed State to own window
2023-01-14 13:32:51 -07:00
Michael Carpenter
8f709412d2
Fix to docs for tutorial 11
2023-01-07 13:38:57 -05:00
Ian Pieragostini
ca614d6c68
Fixes to docs for tutorial 10 and tutorial 11
2022-11-14 13:07:54 +07:00
Johannes Bauer
42df1f43a6
Updated incorrect camera pitch rotation
...
This was already fixed in the actual demo code with f46b2f6
but unfortunately not updated in the documentation.
2022-11-03 00:50:57 +01:00
Ben Hansen
58944cb8ca
fixes #384
2022-07-30 13:39:26 -06:00
Ben Hansen
a2a1d69133
migrated to 0.13
2022-07-01 17:00:19 -06:00
Ben Hansen
0fa9eb1e6f
started fragment shader terrain version
2022-07-01 13:15:05 -06:00
Ben Hansen
844a1d1287
started write up for terrain tutorial
2022-06-25 14:32:24 -06:00
sotrh
f6c701633f
Merge pull request #373 from OisinA/master
...
Replace main.rs with lib.rs in intermediate tutorials
2022-06-24 13:25:12 -06:00
Ben Hansen
f7da79e4c6
fixed noise generation
2022-06-24 12:41:25 -06:00
Ben Hansen
4e129c563d
got heightmap working with compute shaders
2022-06-20 10:10:01 -06:00
OisinA
b987573e93
Replace main.rs with lib.rs
2022-06-17 16:08:33 +01:00
Ben Hansen
bcb4282f1e
fixes #362
2022-05-28 15:02:26 -06:00
disdamoe
c736467db4
suggested changes
2022-05-06 23:37:28 +03:00
dis_da_moe
2275f68247
Typos and grammar for rest of docs
2022-04-18 08:48:38 +03:00
Ben Hansen
27fb79c4ab
fixes #337
2022-04-14 14:50:57 -06:00
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.
2022-03-27 17:05:42 +02:00
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
roudy16
2c4b3668cd
address review comment
2022-03-06 18:51:37 +00:00
roudy16
212da09b15
enable right-handed normal maps
2022-03-01 21:50:15 +00:00
sotrh
f9b6704cc4
Merge pull request #322 from rokonio/patch-4
...
Add missing half_dir
2022-02-26 11:57:17 -07:00
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
```
2022-02-20 11:43:04 +01:00
Rokonio
411702cf17
Correct an error in the normal map tutorial
...
`wgpu::BindingType::Sampler` is a tuple like variant
2022-02-20 10:57:40 +01:00
Ben Hansen
c269f46a0e
testing some things
2022-02-19 11:21:54 -07:00
Ben Hansen
6324e485f1
tutorials 1-9 now work with wasm
2022-02-18 13:36:21 -07:00
Daisuke Kato
c09edf860e
fix typo in docs/tutorial13-threading
...
Propably -> Probably
2022-02-16 08:41:55 +09:00
rhysd
54121a5c54
fix some typos
2021-12-30 23:17:16 +09:00
Ben Hansen
c0843b3f92
fixes #285
2021-12-29 11:57:29 -07:00
Ben Hansen
7a42a0d4db
reworking the alignment readme
2021-12-28 17:35:44 -07:00
Ben Hansen
4ae6c3f89f
added 0.12.md and examples now compile
2021-12-27 13:48:52 -07:00
Ben Hansen
2073b0fbc1
updated to 0.12
2021-12-27 12:09:25 -07:00
sotrh
92c56a6aa4
Merge pull request #272 from nxsy/tutorial12-updates
...
Minor update nits for tutorial 12
2021-11-24 15:56:19 -07:00
sotrh
a3b9a42c7a
Merge pull request #270 from nxsy/tutorial10-into
...
Update tutorial 10 to match types and remove deprecated flags
2021-11-24 15:53:00 -07:00
Neil Blakey-Milner
24f4ccea20
Minor update nits for tutorial 12
2021-11-23 18:56:50 -08:00
Neil Blakey-Milner
6f388ff8eb
Improve clarity of tutorial11 in terms of updates, files
2021-11-23 18:14:17 -08:00
Neil Blakey-Milner
41d8286645
Add missing or rename shader vars
2021-11-23 18:12:38 -08:00
Neil Blakey-Milner
6be05f781e
Update tutorial 10 to match types and remove deprecated flags
2021-11-23 11:19:18 -08:00
Ferdinand Schäffler
bd46bdb243
Converted docs.
2021-10-27 13:17:40 +02:00
Martino Fontana
11b24cebc5
model.rs: added "_bind_group" where appropriate
2021-09-25 21:52:42 +02:00
Ben Hansen
c0754f9dd3
migrated tutorial5
2021-09-11 10:37:05 -06:00
Ben Hansen
57d7eb763f
migrated tutorial4
2021-09-11 10:19:15 -06:00
Ben Hansen
0f618a2ff8
migrated tutorial3
2021-09-11 10:10:18 -06:00
Ben Hansen
822f2d6191
started 0.10
2021-08-28 16:11:33 -06:00
Ben Hansen
806d5aa8af
some notes on pbr
2021-08-28 12:04:03 -06:00
Martino Fontana
463b6117eb
Renamed "light" to "light_uniform"
2021-08-26 21:34:21 +02:00
Martino Fontana
b2b77294f6
Change "uniform" naming to "camera"
2021-08-26 21:09:51 +02:00
Ben Hansen
70bf012641
fixed tangent/bitangent comp and cargo fmt
2021-08-15 10:44:57 -06:00