Material Editor (Source 2)
Jump to navigation
Jump to search

This article or section is a stub. You can help by expanding it.
The
Material Editor is a
Source 2 engine tool that allows you to create and edit materials in the form of .vmat and compiles into .vmat_c which cannot be edited unless decompiled.
Layout Overview
| Section | Description | |
|---|---|---|
| 1. Header | ||
| File |
| |
| Tools |
| |
| View |
| |
| Help | ||
| 2. Hosted Materials | ||
|
The list of hosted materials in the editor.
| ||
| 3. Shader Features | ||
This panel contains the supported features for the material's current shader.
| ||
| 4. Material Variables | ||
Options for various material variables. The panel will update depending on what shader and what shader features have been selected.
| ||
| 5. Material Preview | ||
| Rendering preview of the currently selected material. The common view manipulation controls affect this panel. | ||
| 6. History Capture | ||
Provides a snapshot as editing changes are made. Selecting a different snapshot will put the material back to that snapped state. This provides a rapid method for comparing across changes.
| ||
Material Preview Controls
- Camera Movement
- WASD+

- Alt+

- Center Model
- ⇧ Shift+A
- If the material fails to preview due to a compilation error, the "Log" Tab will show the failure information. The preview will not be available until compilation succeeds. Common compilation errors are due to bad image file paths or image files not found (as specified by the various material's texture variables).
Shaders
[Todo]
Attributes
[Todo]
Compiled Textures
[Todo]
Dynamic Material Expression
Dynamic expressions can be used to procedurally animate a material parameter over time or to drive it by values supplied by game code in order for the material to represent certain game state.
See also
| |||||||||||||||||||||||||||||