model/bsp: Quake 1 / Half-Life / Quake II materials link their texture (baseColorTexture), as Quake III does
This commit is contained in:
1 parent
58df9e8a3a
commit
351f6620dd
7 files changed
+322
-318
No files matched your search
@@ -154257,6 +154257,7 @@ local lmTex= nil
|
||||
table.insert(scene.textures, tex)
|
||||
local mat = Scene.material(t.name)
|
||||
mat.metallic = 0
|
||||
mat.baseColorTexture = { texture = #scene.textures }
|
||||
mat.extras = { bsp = { texels = t.texels and true or nil, width = t.width, height = t.height, lightmap = lmTex, lightmapTexCoord = lmTex and 1 or nil } }
|
||||
table.insert(scene.materials, mat)
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user