Skip to content

Commit f72c1d5

Browse files
committed
Update vmt shader parameter list
1 parent d4a8f55 commit f72c1d5

File tree

3 files changed

+30
-2
lines changed

3 files changed

+30
-2
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/vmt/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sourcelib/vmt",
3-
"version": "0.3.1",
3+
"version": "0.4.0",
44
"description": "Source Engine material tools",
55
"main": "lib/main.js",
66
"scripts": {

packages/vmt/src/shader-param-list.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,13 @@ export const shaderParams = [
137137
"description": "The base color texture to use. Also called albedo/diffuse map. On water, this is used as a 'sludge layer'.",
138138
"wikiUri": "https://developer.valvesoftware.com/wiki/$basetexture"
139139
},
140+
{
141+
"name": "$basetexturetransform",
142+
"type": "string",
143+
"defaultCompletion": "center 0.5 0.5 scale 1 1 rotate 0 translate 0 0",
144+
"description": "Transforms the texture before use in the material. This does not affect lightmaps on the surface. \nThis will transform other textures such as $detail, $bumpmap and $envmapmask, if their own respective texture transform parameters haven't been set.",
145+
"wikiUri": "https://developer.valvesoftware.com/wiki/$basetexture#$basetexturetransform"
146+
},
140147
{
141148
"name": "$blendmodulatetexture",
142149
"type": "texture"
@@ -870,6 +877,27 @@ export const shaderParams = [
870877
"defaultCompletion": 1,
871878
"description": "Self illumination applies 'fake' light to a surface, regardless of the true light that the surface receives from the environment.",
872879
"wikiUri": "https://developer.valvesoftware.com/wiki/Glowing_Textures#.24selfillum"
880+
},
881+
{
882+
"name": "$parallax",
883+
"type": "bool",
884+
"defaultCompletion": 1,
885+
"description": "Enables parallax occlussion mapping on the Strata PBR shader.",
886+
"wikiUri": "https://wiki.stratasource.org/material/pbr/parallaxmapping"
887+
},
888+
{
889+
"name": "$parallaxcenter",
890+
"type": "scalar",
891+
"defaultCompletion": 0.5,
892+
"description": "Essentially defines the distance of the highest point of the material from the plane it is applied to, or how far away the highest point is, on a scale from 0-1; the higher the number the closer to the plane it is. It is recommended adjust this parameter with Hammer open, as materials reload instantly and you can move your camera around freely.",
893+
"wikiUri": "https://wiki.stratasource.org/material/pbr/parallaxmapping"
894+
},
895+
{
896+
"name": "$parallaxdepth",
897+
"type": "scalar",
898+
"defaultCompletion": 0.1,
899+
"description": "Defines the intensity of the effect, on a scale of 0-1; the higher the number the greater the intensity. '0.1' is a good starting point, but you may need to increase/decrease it to get the desired effect. Values to the hundredths place are accepted.",
900+
"wikiUri": "https://wiki.stratasource.org/material/pbr/parallaxmapping"
873901
}
874902
] as ShaderParam[];
875903
export const internalTextures = [

0 commit comments

Comments
 (0)