Material Editor
XBLAH's Modding Tool can be used to create .vtf
and .vmt
files. It can also be used to generate normal maps.
Accessing the feature
This can be accessed within the tool via Top Menu > Materials > Material Editor
.
Creating a Material
When you are creating the material, the tool will create all the necessary files after the user selects the desired source images, either from a local bitmap resource or from a mounted .vtf
.
Selecting the Shader
Currently, the following shaders are supported:
If the mod runs on Mapbase branch, when saving the material, it will automatically add sdk_ to the shader name.
Selecting textures
When creating a new material, you can use existing textures, or use directly image files, without any prior conversion. Once you save the material, the tool will automatically compile the materials to the required format. To load a texture, right click the image preview of the desired texture, and click Open Texture to select an existing texture, or Import to load an image file. You can also export the current texture to an image format by right clicking the image preview, and clicking Export.
Generating Normal Maps
If the base texture has a bland color and dark and bright spots represent bevels, you can use the Generate Normal Map button to automatically create a normal map. This works for most cases.
Supported Games
- All Source games