examples: add instanced-cube example (#246)
add example based on webgpu-samples' instancedCube sample. Signed-off-by: Stephen Gutekanst <stephen@hexops.com> Co-authored-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
8f7a20d2e6
commit
3b86aa08cc
6 changed files with 299 additions and 0 deletions
6
examples/instanced-cube/frag.wgsl
Executable file
6
examples/instanced-cube/frag.wgsl
Executable file
|
|
@ -0,0 +1,6 @@
|
|||
@stage(fragment) fn main(
|
||||
@location(0) fragUV: vec2<f32>,
|
||||
@location(1) fragPosition: vec4<f32>
|
||||
) -> @location(0) vec4<f32> {
|
||||
return fragPosition;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue