Skip to content

Commit

Permalink
fix: update scripts to reset shaders to their defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
alphastrata committed Nov 16, 2023
1 parent 719aa11 commit c01ff81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/reset-2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
const SPEED:f32 = 1.0;
@fragment
fn fragment(in: MeshVertexOutput) -> @location(0) vec4<f32> {
fn fragment(in: VertexOutput) -> @location(0) vec4<f32> {
// ensure our uv coords match shadertoy/the-lil-book-of-shaders
var uv = (in.uv * 2.0) - 1.0;
let resolution = view.viewport.zw;
Expand Down
2 changes: 1 addition & 1 deletion scripts/reset-3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
const SPEED:f32 = 1.0;
@fragment
fn fragment(in: MeshVertexOutput) -> @location(0) vec4<f32> {
fn fragment(in: VertexOutput) -> @location(0) vec4<f32> {
// ensure our uv coords match shadertoy/the-lil-book-of-shaders
let texture_uvs = in.uv;
Expand Down

0 comments on commit c01ff81

Please sign in to comment.