Legalize materials, add many more
This commit is contained in:
5
assets/materials/Andesite.json
Normal file
5
assets/materials/Andesite.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"baseColorTexture": "Andesite_BaseColor.png",
|
||||
"roughness": 1,
|
||||
"metallic": 0
|
||||
}
|
||||
@@ -1,6 +1,4 @@
|
||||
{
|
||||
"baseColorTexture": "Bricks_BaseColor.png",
|
||||
"metallic": 0,
|
||||
"normalTexture": "Bricks_Normal.png",
|
||||
"roughness": 1
|
||||
"occlusionRoughnessMetallicTexture": "Bricks_OcclusionRoughnessMetallic.png"
|
||||
}
|
||||
|
||||
5
assets/materials/ChiseledStoneBricks.json
Normal file
5
assets/materials/ChiseledStoneBricks.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"baseColorTexture": "ChiseledStoneBricks_BaseColor.png",
|
||||
"roughness": 1,
|
||||
"metallic": 0
|
||||
}
|
||||
5
assets/materials/CoalBlock.json
Normal file
5
assets/materials/CoalBlock.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"baseColorTexture": "CoalBlock_BaseColor.png",
|
||||
"roughness": 1,
|
||||
"metallic": 0
|
||||
}
|
||||
4
assets/materials/CoalOre.json
Normal file
4
assets/materials/CoalOre.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"baseColorTexture": "CoalOre_BaseColor.png",
|
||||
"occlusionRoughnessMetallicTexture": "CoalOre_OcclusionRoughnessMetallic.png"
|
||||
}
|
||||
5
assets/materials/Cobblestone.json
Normal file
5
assets/materials/Cobblestone.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"baseColorTexture": "Cobblestone_BaseColor.png",
|
||||
"roughness": 1,
|
||||
"metallic": 0
|
||||
}
|
||||
5
assets/materials/DiamondBlock.json
Normal file
5
assets/materials/DiamondBlock.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"baseColorTexture": "DiamonBlock_BaseColor.png",
|
||||
"roughness": 0,
|
||||
"metallic": 1
|
||||
}
|
||||
4
assets/materials/DiamondOre.json
Normal file
4
assets/materials/DiamondOre.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"baseColorTexture": "DiamondOre_BaseColor.png",
|
||||
"oclussionRoughnessMetallicTexture": "DiamondOre_OcclusionRoughnessMetallic.png"
|
||||
}
|
||||
5
assets/materials/Diorite.json
Normal file
5
assets/materials/Diorite.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"baseColorTexture": "Diorite_BaseColor.png",
|
||||
"roughness": 1,
|
||||
"metallic": 0
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
{
|
||||
"baseColorTexture": "Dirt_BaseColor.png",
|
||||
"metallic": 0,
|
||||
"normalTexture": "Dirt_Normal.png",
|
||||
"roughness": 1
|
||||
"roughness": 1,
|
||||
"metallic": 0
|
||||
}
|
||||
|
||||
4
assets/materials/Glass.json
Normal file
4
assets/materials/Glass.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"baseColorTexture": "Glass_BaseColor.png",
|
||||
"occlusionRoughnessMetallicTexture": "Glass_OcclusionRoughnessMetallic.png"
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"baseColorTexture": "Gold_BaseColor.png",
|
||||
"metallic": 1,
|
||||
"normalTexture": "Gold_Normal.png",
|
||||
"roughness": 0
|
||||
}
|
||||
5
assets/materials/GoldBlock.json
Normal file
5
assets/materials/GoldBlock.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"baseColorTexture": "GoldBlock_BaseColor.png",
|
||||
"roughness": 0,
|
||||
"metallic": 1
|
||||
}
|
||||
4
assets/materials/GoldOre.json
Normal file
4
assets/materials/GoldOre.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"baseColorTexture": "GoldOre_BaseColor.png",
|
||||
"occlusionRoughnessMetallicTexture": "GoldOre_OcclusionRoughnessMetallic.png"
|
||||
}
|
||||
5
assets/materials/Granite.json
Normal file
5
assets/materials/Granite.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"baseColorTexture": "Granite_BaseColor.png",
|
||||
"roughness": 1,
|
||||
"metallic": 0
|
||||
}
|
||||
5
assets/materials/Gravel.json
Normal file
5
assets/materials/Gravel.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"baseColorTexture": "Gravel_BaseColor.png",
|
||||
"roughness": 1,
|
||||
"metallic": 0
|
||||
}
|
||||
5
assets/materials/IronBlock.json
Normal file
5
assets/materials/IronBlock.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"baseColorTexture": "IronBlock_BaseColor.png",
|
||||
"roughness": 0,
|
||||
"metallic": 1
|
||||
}
|
||||
4
assets/materials/IronOre.json
Normal file
4
assets/materials/IronOre.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"baseColorTexture": "IronOre_BaseColor.png",
|
||||
"occlusionRoughnessMetallicTexture": "IronOre_OcclusionRoughnessMetallic.png"
|
||||
}
|
||||
5
assets/materials/OakLog.json
Normal file
5
assets/materials/OakLog.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"baseColorTexture": "OakLog_BaseColor.png",
|
||||
"roughness": 1,
|
||||
"metallic": 0
|
||||
}
|
||||
5
assets/materials/OakLogTop.json
Normal file
5
assets/materials/OakLogTop.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"baseColorTexture": "OakLogTop_BaseColor.png",
|
||||
"roughness": 1,
|
||||
"metallic": 0
|
||||
}
|
||||
5
assets/materials/OakPlanks.json
Normal file
5
assets/materials/OakPlanks.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"baseColorTexture": "OakPlanks_BaseColor.png",
|
||||
"roughness": 1,
|
||||
"metallic": 0
|
||||
}
|
||||
5
assets/materials/Sand.json
Normal file
5
assets/materials/Sand.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"baseColorTexture": "Sand_BaseColor.png",
|
||||
"roughness": 1,
|
||||
"metallic": 0
|
||||
}
|
||||
5
assets/materials/SmoothStone.json
Normal file
5
assets/materials/SmoothStone.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"baseColorTexture": "SmoothStone_BaseColor.png",
|
||||
"roughness": 1,
|
||||
"metallic": 0
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
{
|
||||
"baseColorTexture": "Stone_BaseColor.png",
|
||||
"metallic": 0,
|
||||
"normalTexture": "Stone_Normal.png",
|
||||
"roughness": 1
|
||||
"roughness": 1,
|
||||
"metallic": 0
|
||||
}
|
||||
|
||||
5
assets/materials/StoneBricks.json
Normal file
5
assets/materials/StoneBricks.json
Normal 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
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)
BIN
assets/textures/Bricks_BaseColor.png
(Stored with Git LFS)
Binary file not shown.
BIN
assets/textures/Bricks_Normal.png
(Stored with Git LFS)
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
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
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
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
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
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
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
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
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
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
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)
BIN
assets/textures/Dirt_BaseColor.png
(Stored with Git LFS)
Binary file not shown.
BIN
assets/textures/Dirt_Normal.png
(Stored with Git LFS)
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
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
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
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
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
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)
BIN
assets/textures/Gold_BaseColor.png
(Stored with Git LFS)
Binary file not shown.
BIN
assets/textures/Gold_Normal.png
(Stored with Git LFS)
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
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
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
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
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
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
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
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
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
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
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
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)
BIN
assets/textures/Stone_BaseColor.png
(Stored with Git LFS)
Binary file not shown.
BIN
assets/textures/Stone_Normal.png
(Stored with Git LFS)
BIN
assets/textures/Stone_Normal.png
(Stored with Git LFS)
Binary file not shown.
@@ -157,10 +157,7 @@ pub fn init(allocator: std.mem.Allocator, engine: *Engine, swapchain: *Swapchain
|
||||
var textures = try Textures.init(engine, allocator);
|
||||
errdefer textures.deinit(engine, allocator);
|
||||
|
||||
_ = try materials.getOrLoadFilename(engine, &textures, "Bricks.json", 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);
|
||||
materials.loadAll(engine, &textures, allocator);
|
||||
|
||||
const sampler = try engine.createSampler(.{
|
||||
.mag_filter = .linear,
|
||||
|
||||
Reference in New Issue
Block a user