Skip to content

Commit b620081

Browse files
committed
Add more shader parameters
1 parent 588aa1a commit b620081

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

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

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export const shaderParams = [
140140
{
141141
"name": "$basetexturetransform",
142142
"type": "string",
143-
"defaultCompletion": "center 0.5 0.5 scale 1 1 rotate 0 translate 0 0",
143+
"defaultCompletion": "\"center 0.5 0.5 scale 1 1 rotate 0 translate 0 0\"",
144144
"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.",
145145
"wikiUri": "https://developer.valvesoftware.com/wiki/$basetexture#$basetexturetransform"
146146
},
@@ -898,6 +898,23 @@ export const shaderParams = [
898898
"defaultCompletion": 0.1,
899899
"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.",
900900
"wikiUri": "https://wiki.stratasource.org/material/pbr/parallaxmapping"
901+
},
902+
{
903+
"name": "$blendtintbymraoalpha",
904+
"type": "bool",
905+
"defaultCompletion": 1,
906+
"description": "When enabled, the alpha channel of the MRAO texture will be used as a base color tint mask",
907+
"wikiUri": "https://wiki.stratasource.org/material/pbr/pbrshader"
908+
},
909+
{
910+
"name": "$srgbtint",
911+
"type": "color",
912+
"description": "For tinting model materials with srgb colors"
913+
},
914+
{
915+
"name": "$emissionscale",
916+
"type": "color",
917+
"description": "Tints the emission texture's brightness by this color. Can go above 1 to go extra bright"
901918
}
902919
] as ShaderParam[];
903920
export const internalTextures = [

0 commit comments

Comments
 (0)