Fix assets

This commit is contained in:
2025-12-02 00:31:34 +01:00
parent 46ff0e5729
commit 320273b053
5 changed files with 9 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
{
"baseColorTexture": "DiamonBlock_BaseColor.png",
"baseColorTexture": "DiamondBlock_BaseColor.png",
"roughness": 0,
"metallic": 1
}

View File

@@ -1,4 +1,4 @@
{
"baseColorTexture": "DiamondOre_BaseColor.png",
"oclussionRoughnessMetallicTexture": "DiamondOre_OcclusionRoughnessMetallic.png"
"occlusionRoughnessMetallicTexture": "DiamondOre_OcclusionRoughnessMetallic.png"
}

View File

@@ -11,6 +11,10 @@ const Engine = @import("engine/Engine.zig");
const Swapchain = @import("engine/Swapchain.zig");
const Game = @import("Game.zig");
pub const std_options: std.Options = .{
.log_level = .info,
};
pub fn main() !void {
var gpa: std.heap.GeneralPurposeAllocator(.{}) = .init;
defer _ = gpa.deinit();

View File

@@ -1,3 +1,5 @@
const Materials = @import("assets/Materials.zig");
pub const Orientation = enum(u4) {
negative_x,
positive_x,
@@ -15,7 +17,7 @@ pub const Orientation = enum(u4) {
// ┌┴─┐┌┴─┐ ┌┴─┐┌┴─┐ ┌┴──────────────┐
// 10987654 32109876 54321098 76543210
pub const Wall = packed struct(u32) {
material: u16,
material: Materials.Id,
orientation: Orientation,
z: u4,
y: u4,