Skip to content

Commit

Permalink
hotfix: typos in cheatsheet
Browse files Browse the repository at this point in the history
  • Loading branch information
alphastrata committed Dec 5, 2023
1 parent 045a717 commit 3243c13
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bevy-shaders-cheatsheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ Then use this [rust-binding-code](https://github.com/alphastrata/shadplay/blob/d
#[derive(AsBindGroup, TypeUuid, TypePath, Debug, Clone)]
#[uuid = "c74e039a-3df7-4f71-bd1d-7fe4b25a2230"]
struct DottedLineShader {
#[uniform(0)]
#[uniform(100)] // Make the uniform a big(ish) number to avoid clashing with existing bindings.
uniforms: Holder, //RGBA
}

Expand Down Expand Up @@ -325,15 +325,15 @@ fn pR(out_point: vec2<f32>, angle: f32)-> vec2f {
> from https://www.shadertoy.com/view/4t2cR1
- in `glsl`, when declaring structs, you terminate the lines of the fields with `;`, in wgsl you use `,`so:
this: \`\`\`glsl
this:
```glsl
struct geometry {
float dist;
vec3 hit;
int iterations;
};
\`\`
```
becomes:

```rust
struct Geometry {
dist: f32,
Expand Down

0 comments on commit 3243c13

Please sign in to comment.