ft (wip): texture/material overhaul

This commit is contained in:
2026-09-13 11:58:25 +02:00
parent 2800d911c3
commit 968c232388
11 changed files with 89 additions and 33 deletions

View File

@@ -14,8 +14,8 @@
},
"materials": [
{ "type": "lambertian", "albedo": [0.2, 0.2, 0.2], "prob": 0.8 },
{"type": "texture", "source": "./textures/earthmap1k.png"},
{"type": "texture", "source": "./textures/bluegrid.png"}
{ "type": "lambertian", "albedo": { "source": "./textures/earthmap1k.png" }, "prob": 1.0 },
{ "type": "lambertian", "albedo": { "source": "./textures/bluegrid.png" }, "prob": 0.5 }
],
"objects": [
{ "type": "sphere", "center": [0.0, 0.0, -1.2], "radius": 0.9, "material": 2},