Shaders in Decals\
From Valve Developer Community
The Decals\ folder of Source Materials.gcf (and its subfolders) contain shaders used for decals.
- LightmappedGeneric is used for numerous materials, making it the most common shader for this folder.
- VertexLitGeneric is used for 36 materials.
- UnlitGeneric is used for 9 materials.
| Table of contents |
[edit]
Subfolders
Only three types of shaders are used here: DecalModulate, VertexLitGeneric and Subrect.
[edit]
Dedicated Shaders
The following shaders are more or less exclusively used for this folder:
[edit]
Subrect
- Used in 89 materials in these folders, always in files ending with
_subrect.vmt. - It is also, to a much lesser extent, used in the Effects\ and Sprites\ folders.
[edit]
DecalModulate
- Used in 55 materials in these folders only.
- See Using Modulation on how to use this.
- Only referred to once (in
src\utils\xwad\xwad.cpp) in the released mod code.
[edit]
DecalBaseTimesLightmapAlphaBlendSelfIllum
- Used in the materials
decalglasswindow003a.vmt,decalmetalvent004a.vmtanddecalporthole001b.vmtin these folders only. - Replaced by LightmappedGeneric in numerous materials in both this folder and the Props\ folder.
- Not found in released mod code.
[edit]
ShadowModel
- Used in only one material:
rendermodelshadow.vmt - Probably referred once (in
src\cl_dll\clientshadowmgr.cpp) in the released mod code. - Do not confuse with the proxy by the same name.
[edit]
Shadow
- Used in the materials
rendershadow.vmtandsimpleshadow.vmtonly. - Do not confuse with the proxy by the same name.
