This article's documentation is for anything that uses the Source engine. Click here for more information.

Material Editor

From Valve Developer Community
Jump to: navigation, search
English (en)

Note.pngNote:This tutorial was written for XBLAH's Modding Tool XBLAH's Modding Tool v1.18.1. Please be aware that subsequent updates might have introduced alterations in terminologies, introduced novel features, or reorganized certain elements within the interface.

WAD Editor

XBLAH's Modding Tool XBLAH's Modding Tool can be used to create 🖿.vtf and File.vmt files. It can also be used to generate normal maps.

Accessing the feature

This can be accessed within the tool via Custom IconTop 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

See also