Import material textures with mesh assets

This commit is contained in:
2026-03-26 16:22:24 +08:00
parent c479595bf5
commit e174862b8a
18 changed files with 622 additions and 21 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 B

View File

@@ -0,0 +1,7 @@
newmtl TestMaterial
Ka 1.000000 1.000000 1.000000
Kd 1.000000 1.000000 1.000000
Ks 0.000000 0.000000 0.000000
d 1.0
illum 2
map_Kd checker.bmp

View File

@@ -0,0 +1,11 @@
mtllib textured_triangle.mtl
o TexturedTriangle
v 0.0 0.0 1.0
v 1.0 0.0 1.0
v 0.0 1.0 1.0
vt 0.0 0.0
vt 1.0 0.0
vt 0.0 1.0
vn 0.0 0.0 1.0
usemtl TestMaterial
f 1/1/1 2/2/1 3/3/1

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 B