Skip to content

Commit

Permalink
automatic update
Browse files Browse the repository at this point in the history
  • Loading branch information
slowriot committed Jan 7, 2025
1 parent b492949 commit 16240a8
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions render/shaders/default.wgsl.h
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -13,7 +18,7 @@ struct uniform_struct {
normal_matrix: mat3x3f,
};
@group(0) @binding(0) var<uniform> 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 {
Expand All @@ -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

0 comments on commit 16240a8

Please sign in to comment.