examples: add pixel post processing effect example

This commit is contained in:
Diego Arias 2022-09-16 15:56:16 -03:00 committed by Stephen Gutekanst
parent 6183e39593
commit eef76effe3
9 changed files with 618 additions and 0 deletions

View file

@ -0,0 +1,6 @@
@fragment fn main(
@location(0) normal: vec3<f32>,
@location(1) uv: vec2<f32>,
) -> @location(0) vec4<f32> {
return vec4<f32>(normal / 2 + 0.5, 1.0);
}