Skip to content

Commit 405700a

Browse files
committed
update bevy shaderbook
1 parent 9a405bf commit 405700a

File tree

3 files changed

+1412
-495
lines changed

3 files changed

+1412
-495
lines changed

assets/shaders/myshader.wgsl

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
//! The default 3d Shader.
33
//!
44
#import bevy_pbr::forward_io::VertexOutput, FragmentOutput
5-
#import bevy_pbr::mesh_view_bindings::globals, View
5+
#import bevy_pbr::mesh_view_bindings::globals
66
#import bevy_pbr::utils PI
7+
#import bevy_render::view::View
78
#import shadplay::shader_utils::common NEG_HALF_PI, shader_toy_default, rotate2D
89

910
@group(0) @binding(0) var<uniform> view: View;
@@ -16,9 +17,8 @@ const SPEED:f32 = 1.0;
1617

1718
@fragment
1819
fn fragment(in: VertexOutput) -> @location(0) vec4f {
19-
// ensure our uv coords match shadertoy/the-lil-book-of-shaders
20-
let texture_uvs = in.uv;
21-
let tex: vec4f = textureSample(texture, texture_sampler, texture_uvs); // textureSample is provided by wgsl?
22-
return tex;
23-
20+
// let texture_uvs = in.uv;
21+
// let tex: vec4f = textureSample(texture, texture_sampler, texture_uvs);
22+
// return tex;
23+
return vec4f(1.0);
2424
}

0 commit comments

Comments
 (0)