examples: add pixel post processing effect example
This commit is contained in:
parent
6183e39593
commit
eef76effe3
9 changed files with 618 additions and 0 deletions
6
examples/pixel-post-process/normal_frag.wgsl
Normal file
6
examples/pixel-post-process/normal_frag.wgsl
Normal 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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue