examples: add ported rotating-cube example (#227)
This commit is contained in:
parent
93629022c5
commit
f96bbb453e
6 changed files with 322 additions and 13 deletions
6
examples/rotating-cube/frag.wgsl
Executable file
6
examples/rotating-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