example: texture and light

This commit is contained in:
d3m1gd 2022-04-21 15:49:23 +07:00 committed by Stephen Gutekanst
parent 538af3e6df
commit 45df76bdd8
4 changed files with 1016 additions and 0 deletions

View file

@ -33,6 +33,7 @@ pub fn build(b: *std.build.Builder) void {
.{ .name = "rotating-cube", .packages = &[_]Pkg{Packages.zmath} },
.{ .name = "two-cubes", .packages = &[_]Pkg{Packages.zmath} },
.{ .name = "instanced-cube", .packages = &[_]Pkg{Packages.zmath} },
.{ .name = "texture-light", .packages = &[_]Pkg{Packages.zmath} },
}) |example| {
const example_exe = b.addExecutable("example-" ++ example.name, "examples/" ++ example.name ++ "/main.zig");
example_exe.setTarget(target);