Skip to content

Commit e883c95

Browse files
committed
Add some more vmt properties and snippets
1 parent 54c886d commit e883c95

2 files changed

Lines changed: 47 additions & 0 deletions

File tree

package.json

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,52 @@
560560
"name": "$color2",
561561
"type": "color"
562562
},
563+
{
564+
"name": "$decal",
565+
"type": "bool",
566+
"defaultCompletion": 1,
567+
"wikiUri": "https://developer.valvesoftware.com/wiki/Decals",
568+
"description": "Marks the material to be used as an overlay or decal. With this on, this material no longer seals the map and hammer properly displays it in the 3D viewport without Z-fighting"
569+
},
570+
{
571+
"name": "$decalscale",
572+
"type": "float",
573+
"defaultCompletion": 0.25,
574+
"wikiUri": "https://developer.valvesoftware.com/wiki/Decals",
575+
"description": "Scale of the texture when applying to surface. Usually 0.25. Same as brush face texture scale."
576+
},
577+
{
578+
"name": "$modelmaterial",
579+
"type": "material",
580+
"wikiUri": "https://developer.valvesoftware.com/wiki/Decals",
581+
"description": "Path to a separate material to use when this decal is applied to a model"
582+
},
583+
{
584+
"name": "$decalfadeduration",
585+
"type": "float",
586+
"wikiUri": "https://developer.valvesoftware.com/wiki/Decals",
587+
"description": "Amount of time to spend fading out. Required `$vertexcolor`"
588+
},
589+
{
590+
"name": "$decalfadetime",
591+
"type": "float",
592+
"defaultCompletion": 1,
593+
"wikiUri": "https://developer.valvesoftware.com/wiki/Decals",
594+
"description": "Delay before fade out begins"
595+
},
596+
{
597+
"name": "$decalsecondpass",
598+
"type": "bool",
599+
"defaultCompletion": 1,
600+
"wikiUri": "https://developer.valvesoftware.com/wiki/Decals",
601+
"description": "Always render this decal on top of materials that don't have this parameter."
602+
},
603+
{
604+
"name": "$fogscale",
605+
"type": "float",
606+
"wikiUri": "https://developer.valvesoftware.com/wiki/Decals",
607+
"description": "Scales the amount of fog affecting the decal. Usefog for making important decals stand out in foggy levels."
608+
},
563609
{
564610
"name": "$decaltexture",
565611
"type": "texture"

snippets/vmt-snippets.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"\t\\$basetexture \"$1\"",
1717
"\t\\$decal 1",
1818
"\t\\$decalscale 0.25",
19+
"\t\\$translucent 1",
1920
"}"
2021
],
2122
"description": "Basic LightmappedGeneric material to use as a world-placed decal"

0 commit comments

Comments
 (0)