shaderexp: add initial shader explorer tool (#245)
* shaderexp: first commit * shaderexp: further improve error handling * shaderexp: attribute ray_marching example Signed-off-by: Stephen Gutekanst <stephen@hexops.com> Co-authored-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
8d574e772c
commit
8df8b043ad
9 changed files with 646 additions and 0 deletions
14
shaderexp/vert.wgsl
Executable file
14
shaderexp/vert.wgsl
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
struct VertexOut {
|
||||
@builtin(position) position_clip : vec4<f32>;
|
||||
@location(0) frag_uv : vec2<f32>;
|
||||
}
|
||||
|
||||
@stage(vertex) fn main(
|
||||
@location(0) position : vec4<f32>,
|
||||
@location(1) uv : vec2<f32>
|
||||
) -> VertexOut {
|
||||
var output : VertexOut;
|
||||
output.position_clip = position;
|
||||
output.frag_uv = uv;
|
||||
return output;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue