{examples,shaderexp}: update to new mach/gpu API
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
852d232335
commit
f299d87aa2
39 changed files with 473 additions and 338 deletions
|
|
@ -75,7 +75,7 @@ fn getLight(p:vec3<f32>) -> f32{
|
|||
return dif;
|
||||
}
|
||||
|
||||
@stage(fragment) fn main(
|
||||
@fragment fn main(
|
||||
@location(0) uv : vec2<f32>
|
||||
) -> @location(0) vec4<f32> {
|
||||
let aspect = ubo.resolution / min(ubo.resolution.x,ubo.resolution.y);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue