diff --git a/render/shaders/default.wgsl.h b/render/shaders/default.wgsl.h index c4ceae9..4453d51 100644 --- a/render/shaders/default.wgsl.h +++ b/render/shaders/default.wgsl.h @@ -1,4 +1,9 @@ +#pragma once + +// This file is automatically generated from render/shaders/default.wgsl by ./compile_resource_to_raw_string.sh + namespace render::shaders { + inline constexpr char const *default_wgsl{R"081f8b92eef0a2c7(struct vertex_input { @location(0) position: vec3f, @location(1) normal: vec3f, @@ -13,7 +18,7 @@ struct uniform_struct { normal_matrix: mat3x3f, }; @group(0) @binding(0) var uniforms: uniform_struct; -const light_dir = vec3f(0.872872, 0.218218, -0.436436); +const light_dir = vec3f(0.872872, 0.218218, -0.436436); const ambient = 0.5f; @vertex fn vs_main(in: vertex_input) -> vertex_output { @@ -28,4 +33,6 @@ fn vs_main(in: vertex_input) -> vertex_output { fn fs_main(in: vertex_output) -> @location(0) vec4f { return in.colour; } -)081f8b92eef0a2c7"};} +)081f8b92eef0a2c7"}; + +} // namespace render::shaders