Legalize materials, add many more

This commit is contained in:
2025-11-27 18:49:18 +01:00
parent df73f8f501
commit 0747e5e880
61 changed files with 193 additions and 40 deletions

View File

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

View File

@@ -1,6 +1,4 @@
{ {
"baseColorTexture": "Bricks_BaseColor.png", "baseColorTexture": "Bricks_BaseColor.png",
"metallic": 0, "occlusionRoughnessMetallicTexture": "Bricks_OcclusionRoughnessMetallic.png"
"normalTexture": "Bricks_Normal.png",
"roughness": 1
} }

View File

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

View File

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

View File

@@ -0,0 +1,4 @@
{
"baseColorTexture": "CoalOre_BaseColor.png",
"occlusionRoughnessMetallicTexture": "CoalOre_OcclusionRoughnessMetallic.png"
}

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,6 +1,5 @@
{ {
"baseColorTexture": "Dirt_BaseColor.png", "baseColorTexture": "Dirt_BaseColor.png",
"metallic": 0, "roughness": 1,
"normalTexture": "Dirt_Normal.png", "metallic": 0
"roughness": 1
} }

View File

@@ -0,0 +1,4 @@
{
"baseColorTexture": "Glass_BaseColor.png",
"occlusionRoughnessMetallicTexture": "Glass_OcclusionRoughnessMetallic.png"
}

View File

@@ -1,6 +0,0 @@
{
"baseColorTexture": "Gold_BaseColor.png",
"metallic": 1,
"normalTexture": "Gold_Normal.png",
"roughness": 0
}

View File

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

View File

@@ -0,0 +1,4 @@
{
"baseColorTexture": "GoldOre_BaseColor.png",
"occlusionRoughnessMetallicTexture": "GoldOre_OcclusionRoughnessMetallic.png"
}

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,4 @@
{
"baseColorTexture": "IronOre_BaseColor.png",
"occlusionRoughnessMetallicTexture": "IronOre_OcclusionRoughnessMetallic.png"
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,6 +1,5 @@
{ {
"baseColorTexture": "Stone_BaseColor.png", "baseColorTexture": "Stone_BaseColor.png",
"metallic": 0, "roughness": 1,
"normalTexture": "Stone_Normal.png", "metallic": 0
"roughness": 1
} }

View File

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

BIN
assets/textures/Andesite_BaseColor.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/textures/Bricks_BaseColor.png (Stored with Git LFS)

Binary file not shown.

BIN
assets/textures/Bricks_Normal.png (Stored with Git LFS)

Binary file not shown.

BIN
assets/textures/Bricks_OcclusionRoughnessMetallic.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/textures/ChiseledStoneBricks_BaseColor.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/textures/CoalBlock_BaseColor.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/textures/CoalOre_BaseColor.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/textures/CoalOre_OcclusionRoughnessMetallic.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/textures/Cobblestone.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/textures/DiamondBlock_BaseColor.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/textures/DiamondOre_BaseColor.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/textures/DiamondOre_OcclusionRoughnessMetallic.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/textures/Diorite_BaseColor.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/textures/Dirt_BaseColor.png (Stored with Git LFS)

Binary file not shown.

BIN
assets/textures/Dirt_Normal.png (Stored with Git LFS)

Binary file not shown.

BIN
assets/textures/Glass_BaseColor.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/textures/Glass_OcclusionRoughnessMetallic.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/textures/GoldBlock_BaseColor.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/textures/GoldOre_BaseColor.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/textures/GoldOre_OcclusionRoughnessMetallic.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/textures/Gold_BaseColor.png (Stored with Git LFS)

Binary file not shown.

BIN
assets/textures/Gold_Normal.png (Stored with Git LFS)

Binary file not shown.

BIN
assets/textures/Granite_BaseColor.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/textures/Gravel_BaseColor.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/textures/IronBlock_BaseColor.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/textures/IronOre_BaseColor.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/textures/IronOre_OcclusionRoughnessMetallic.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/textures/OakLogTop_BaseColor.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/textures/OakLog_BaseColor.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/textures/OakPlanks_BaseColor.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/textures/Sand_BaseColor.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/textures/SmoothStone_BaseColor.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/textures/StoneBricks_BaseColor.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/textures/Stone_BaseColor.png (Stored with Git LFS)

Binary file not shown.

BIN
assets/textures/Stone_Normal.png (Stored with Git LFS)

Binary file not shown.

View File

@@ -157,10 +157,7 @@ pub fn init(allocator: std.mem.Allocator, engine: *Engine, swapchain: *Swapchain
var textures = try Textures.init(engine, allocator); var textures = try Textures.init(engine, allocator);
errdefer textures.deinit(engine, allocator); errdefer textures.deinit(engine, allocator);
_ = try materials.getOrLoadFilename(engine, &textures, "Bricks.json", allocator); materials.loadAll(engine, &textures, allocator);
_ = try materials.getOrLoadFilename(engine, &textures, "Dirt.json", allocator);
_ = try materials.getOrLoadFilename(engine, &textures, "Gold.json", allocator);
_ = try materials.getOrLoadFilename(engine, &textures, "Stone.json", allocator);
const sampler = try engine.createSampler(.{ const sampler = try engine.createSampler(.{
.mag_filter = .linear, .mag_filter = .linear,