
However, despite being based on a blank material, the listed "default" value is not actually always default The default values are determined by examining a blank material (consisting of simply "_", being an unrecognized shader with no parameters set) in the built-in material editor (accessible by using " toolload vmt" and " mat_edit " in the console). The default value for the parameter in question is shown in italics at the top of that column in each row, sometimes with additional information below that. Parameter "Default" Explanation:The parameter lists have a " Default Value / Additional Information" column. This can be overcome by taking the number (in range 0.0-1.0, not 0-255) and multiplying it by itself 2.2 times.įor example, if you want a RGB output of 128, then 128 / 255 = (roughly) 0.5, and 0.5 ^ 2.2 = (roughly) 0.21763764082, so you should use 0.21763764082 in the material.)įor multi-number values, matrices, as well as paths/strings that contain spaces, the value must be wrapped in quotes ("), or Source Filmmaker will only interpret the first part of it as a value.įor values and parameter/shader names that don't have spaces, quotes are optional. (Note that due to Source using a gamma value of 2.2, using 50% in a colour parameter will result in a RGB output of 186 when rendered, not 128. If you want to adjust each number separately, you must separate the numbers by spaces and wrap the group of numbers between " is (almost) the same as "", both of them being 100% red, 50% green, and 0% blue, which is an orange colour. For colors, vector2s, vector3s, and vector4s, it's possible to specify a single float that will get applied identically to each number of the variable.įor example, setting a color parameter to 0.5 becomes 50% red, 50% green, and 50% blue, being a grey colour.
