diff --git a/basic-3d-rendering/shader-uniforms/a-first-uniform.md b/basic-3d-rendering/shader-uniforms/a-first-uniform.md index 5069f47..de6bb65 100644 --- a/basic-3d-rendering/shader-uniforms/a-first-uniform.md +++ b/basic-3d-rendering/shader-uniforms/a-first-uniform.md @@ -335,7 +335,7 @@ Retaining `bindGroupLayout` is also needed when we create the bind group that go ### Binding layout -The `BindGroupLayoutEntry` could have been called `BindingLayout` imho. The first setting is the binding index, as used in the shader's `@binding` attribute. Then the `visibility` field tells which stage requires access to this resource, so that it is not needlessly provided to all stages. +The `BindGroupLayoutEntry` could have been called `BindingLayout`. The first setting is the binding index, as used in the shader's `@binding` attribute. Then the `visibility` field tells which stage requires access to this resource, so that it is not needlessly provided to all stages. ````{tab} With webgpu.hpp ```{lit} C++, Define bindingLayout diff --git a/basic-3d-rendering/shader-uniforms/dynamic-uniforms.md b/basic-3d-rendering/shader-uniforms/dynamic-uniforms.md index b4428b0..3293cea 100644 --- a/basic-3d-rendering/shader-uniforms/dynamic-uniforms.md +++ b/basic-3d-rendering/shader-uniforms/dynamic-uniforms.md @@ -1,6 +1,10 @@ Dynamic uniforms 🟡 ================ +```{admonition} 🚧 WIP +From this chapter on, the guide uses a previous version of the accompanying code (in particular, it does not define an `Application` class but rather puts everything in a monolithic `main` function). **I am currently refreshing it** chapter by chapter and this is **where I am currently working**! +``` + ````{tab} With webgpu.hpp *Resulting code:* [`step044`](https://github.com/eliemichel/LearnWebGPU-Code/tree/step044) ```` diff --git a/basic-3d-rendering/shader-uniforms/multiple-uniforms.md b/basic-3d-rendering/shader-uniforms/multiple-uniforms.md index d1736c6..2bca62b 100644 --- a/basic-3d-rendering/shader-uniforms/multiple-uniforms.md +++ b/basic-3d-rendering/shader-uniforms/multiple-uniforms.md @@ -1,8 +1,15 @@ More uniforms 🟡 ============= -```{admonition} 🚧 WIP -From this chapter on, the guide uses a previous version of the accompanying code (in particular, it does not define an `Application` class but rather puts everything in a monolithic `main` function). **I am currently refreshing it** chapter by chapter and this is **where I am currently working**! +```{lit-setup} +:tangle-root: 043 - More uniforms - vanilla +:parent: 039 - A first uniform - vanilla +:alias: Vanilla +``` + +```{lit-setup} +:tangle-root: 043 - More uniforms +:parent: 039 - A first uniform ``` ````{tab} With webgpu.hpp diff --git a/basic-3d-rendering/some-interaction/lighting-control.md b/basic-3d-rendering/some-interaction/lighting-control.md index d1f39b0..e0772ed 100644 --- a/basic-3d-rendering/some-interaction/lighting-control.md +++ b/basic-3d-rendering/some-interaction/lighting-control.md @@ -1,4 +1,4 @@ -Lighting control 🟡 +Lighting control 🟡🟢 ================ ````{tab} With webgpu.hpp @@ -9,6 +9,10 @@ Lighting control 🟡 *Resulting code:* [`step100-vanilla`](https://github.com/eliemichel/LearnWebGPU-Code/tree/step100-vanilla) ```` +```{important} +**October 25, 2024:** This chapter is marked with a secondary **green bullet 🟢** only to draw attention because there is a preview of the accompanying code available for a recent version of Dawn: [`step100-dawn`](https://github.com/eliemichel/LearnWebGPU-Code/tree/step100-dawn). The content of this chapter still relies on older versions. +``` + Now that we have elements of GUI, we can use them to expose for instance the **lighting settings** to the user. We want them to be able to **live tweak** the direction and color of our light sources. Recap on basic shading