Skip to content

Commit

Permalink
Hide materials used by models in Radiant
Browse files Browse the repository at this point in the history
  • Loading branch information
myuce committed Apr 5, 2021
1 parent aeb0b21 commit ba6ceeb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/AssetExporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,11 @@ def createMaterialGdtBo3(vmts: dict):
data["colorMap"] = "i_" + uniqueName(mat["$basetexture"].strip())
else:
data["colorMap"] = "404.tif"
data["usage"] = "tools" # probably not a good idea

if shader == "vertexlitgeneric" or shader == "vertexunlitgeneric":
data["usage"] = "<not in editor>"
else:
data["usage"] = "tools" # probably not a good idea

if "$bumpmap" in mat and "$ssbump" not in mat:
data["normalMap"] = "i_" + uniqueName(mat["$bumpmap"].strip())
Expand Down

0 comments on commit ba6ceeb

Please sign in to comment.