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
13
examples/pixel-post-process/quad_mesh.zig
Normal file
13
examples/pixel-post-process/quad_mesh.zig
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
pub const Quad = struct {
|
||||
pos: @Vector(3, f32),
|
||||
uv: @Vector(2, f32),
|
||||
};
|
||||
|
||||
pub const quad = [_]Quad{
|
||||
.{ .pos = .{ -1.0, 1.0, 0.0 }, .uv = .{ 0, 1 } },
|
||||
.{ .pos = .{ -1.0, -1.0, 0.0 }, .uv = .{ 0, 0 } },
|
||||
.{ .pos = .{ 1.0, 1.0, 0.0 }, .uv = .{ 1, 1 } },
|
||||
.{ .pos = .{ 1.0, 1.0, 0.0 }, .uv = .{ 1, 1 } },
|
||||
.{ .pos = .{ -1.0, -1.0, 0.0 }, .uv = .{ 0, 0 } },
|
||||
.{ .pos = .{ 1.0, -1.0, 0.0 }, .uv = .{ 1, 0 } },
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue