Commit Graph

55 Commits

Author SHA1 Message Date
Ben Hansen
53a019b902 fixed #189 2021-06-09 12:55:00 -06:00
Ben Hansen
63e0d9c6b8 intermediate tutorials migrated 2021-05-24 11:44:10 -06:00
Ben Hansen
46eb5eb139 code now builds on 0.8 2021-05-01 15:55:26 -06:00
sotrh
d8a861b515
Merge branch 'master' into cgmath-0.18 2021-04-18 19:36:12 -06:00
Hiroaki Yutani
24f565ee58 Update winit to 0.24 2021-04-16 00:28:55 +09:00
Hiroaki Yutani
1bb374c89e docs 2021-04-11 17:09:10 +09:00
Elijah C. Voigt
bcc79b5e41 Misc typo and code fixes.
009: impl Vertex for ModelVertex was using the vertex_attr_array! macro.
009: RenderPipelineDescriptor has a `vertex` member not  `vertex_state`.
009: to_rgba() should be to_rgba8(), to_rgba is set to be deprecated.

010: BindGroupDescriptor has a `entries` member not `bindings`.
010: Remove re-declaration of mat4 model_matrix;
010: Prefer hard-coded [#.#; #] instead of `Foo::fn().into()`.
010: Clarify which shader frag/vert file changes are in.

011: Change Model::load return type to Result<Self>.
011: TextureDescriptor does not have a array_layer_count member.

012: Add .into() to calls in Uniforms::update_view_proj().
012: Dereference delta variable in State::input().

013: Add more changed lines to Model::load to avoid compiler yelling.
2021-03-26 09:46:37 -07:00
Linden Krouse
f6f6fa29c4
Fixed some spelling and grammar errors 2021-03-08 17:28:27 -05:00
Ben Hansen
87d0a97404 migrated intermediate tutorial docs 2021-02-21 10:26:16 -07:00
Ben Hansen
b4dd4654e4 intermediate tutorial code migrated 2021-02-13 01:30:42 -07:00
Ben Hansen
3901419a58 beginner tutorial code done 2021-02-12 00:18:27 -07:00
Ben Hansen
91879d405b code up to 7 migrated 2021-02-11 23:29:40 -07:00
Ben Hansen
1f9024691c shaderc 1.6 -> 0.7 2021-01-26 02:02:50 -07:00
Ben Hansen
c92d2a528e modified camera tutorial to use DeviceEvent 2020-11-25 16:51:22 -07:00
Ben Hansen
c770e1860f fixed code for #116 2020-11-18 10:48:28 -07:00
Ben Hansen
0620f0b05d migrated ModelVertex to use bytemuck derive 2020-11-14 14:57:39 -07:00
Ben Hansen
9a221fb2c4 migrated Light struct to use bytemuck derive 2020-11-14 14:43:29 -07:00
Ben Hansen
0ccb80e7e3 updated Uniforms struct to use bytemuck derive 2020-11-12 19:28:53 -07:00
Ben Hansen
8ad575f750 finished #121 2020-11-11 15:41:06 -07:00
sotrh
3e83cf5a17
Merge pull request #112 from pudnax/winit_0.23
Migration to winit 0.23
2020-10-21 17:08:44 -06:00
Alex Komissarov
ae3f7e8e95
Wrong light_bind_group_layout 2020-10-21 02:01:47 +05:00
Alex Komissarov
d38731e472
Migration to winit 0.23 2020-10-21 01:10:16 +05:00
Ben Hansen
786ce2410c fixed config and readded missing tutorial11 2020-09-27 23:12:21 -06:00
Ben Hansen
ad5cd8e12f fixed #93 2020-09-27 22:52:35 -06:00
Ben Hansen
9b02850917 started threading 2020-09-25 21:27:38 -06:00
Ben Hansen
cb5cfd074f fixed #86 2020-09-19 15:49:05 -06:00
Ben Hansen
8d5de2d87c migrated tutorial11 2020-09-14 12:53:22 -06:00
Ben Hansen
03b1b64e55 migrated tutorial10 2020-09-11 16:19:26 -06:00
Alex Butler
a03a57bb60
Fix some easy-win lints 2020-08-03 11:44:46 +01:00
Ben Hansen
252ca8b909 forgot github link, etc 2020-07-24 15:47:04 -06:00
Ben Hansen
0ae192f440 fixed missing screenshot 2020-07-24 15:36:50 -06:00
Ben Hansen
d6d6995066 finished camera changes 2020-07-24 13:24:45 -06:00
Hiroaki Yutani
c80c674dd5 Move the comment 2020-06-16 09:26:27 +09:00
Hiroaki Yutani
3d9edd9b3a
Add some explanations on tutorial11 2020-06-14 17:19:32 +09:00
Ben Hansen
4063cc49de fixed #46 2020-06-09 21:18:45 -06:00
Hiroaki Yutani
5e0ecd91cf
Improve tutorial 10 2020-06-08 00:15:30 +09:00
Ebrahim Byagowi
3555c713cb Use shaderc instead the deprecated glsl-to-spirv
I was getting lots of these errors,

glsl-to-spirv-0.1.7/glslang/hlsl/../glslang/MachineIndependent/../Public/../Include/../Include/Common.h:99:
.../registry/src/github.com-1ecc6299db9ec823/glsl-to-spirv-0.1.7/glslang/hlsl/../glslang/MachineIndependent/../Public/../Include/PoolAlloc.h:314:54: error: 'operator=' is a private member of 'glslang::TPoolAllocator'
    void setAllocator(TPoolAllocator* a) { allocator = *a; }
                                           ~~~~~~~~~ ^ ~~
.../registry/src/github.com-1ecc6299db9ec823/glsl-to-spirv-0.1.7/glslang/hlsl/../glslang/MachineIndependent/../Public/../Include/PoolAlloc.h:244:21: note: declared private here
    TPoolAllocator& operator=(const TPoolAllocator&);  // don't allow assignment operator
                    ^

And had to replace the apparently now deprecated glsl-to-spirv with shaderc-rs in order to
see the tutorial and thought would be useful for others also.
2020-05-27 00:05:41 +04:30
Ben Hansen
752533a706 finish normal mapping 2020-05-04 13:03:39 -06:00
Ben Hansen
387e17ba5f finished normal mapping tutorial 2020-05-03 22:45:42 -06:00
Ben Hansen
ec5339bd3b started normals tutorial 2020-04-29 12:31:35 -06:00
Ben Hansen
107d64a70e preparing for 0.5 deploy 2020-04-25 18:49:59 -06:00
Ben Hansen
032253fea9 cleaning up for 0.5 2020-04-25 16:32:17 -06:00
downtime
6d2d839411 Updated dependencies 2020-04-22 12:12:29 +08:00
Ben Hansen
ab0513146d cleanup for lighting deploy 2020-04-17 21:26:17 -06:00
Ben Hansen
3b22ab9da9 finished lighting rewrite 2020-04-17 21:23:19 -06:00
Ben Hansen
be23faee06 finished gif showcase 2020-03-29 19:51:50 -06:00
Ben Hansen
e0d88871a5 finished lighting 2020-03-17 20:20:05 -06:00
Ben Hansen
a805bd8fa3 updated lighting tutorial to use model.rs 2020-03-12 16:57:09 -06:00
Ben Hansen
9e30f8bc99 added "spheres" 2020-02-21 15:12:43 -07:00
Ben Hansen
da4c268fbc updated winit to 0.20 2020-01-11 15:55:08 -07:00