Shaders in Decals\: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (Category rename) |
||
(5 intermediate revisions by 3 users not shown) | |||
Line 18: | Line 18: | ||
===Subrect=== | ===Subrect=== | ||
* Used in 89 materials in these folders, always in files ending with <code>_subrect.vmt</code>. | * Used in 89 materials in these folders, always in files ending with <code>_subrect.vmt</code>. | ||
* It is also, to a much lesser extent, used in the | * It is also, to a much lesser extent, used in the [[Shaders_in_Effects\|Effects\]] and [[Shaders_in_Sprites\|Sprites\]] folders. | ||
===DecalModulate=== | ===DecalModulate=== | ||
* Used in 55 materials in these folders only. | * Used in 55 materials in these folders only. | ||
* See [[Creating Decals#Using Modulation|Using Modulation]] on how to use this. | |||
* Only referred to once (in <code>src\utils\xwad\xwad.cpp</code>) in the released mod code. | * Only referred to once (in <code>src\utils\xwad\xwad.cpp</code>) in the released mod code. | ||
===DecalBaseTimesLightmapAlphaBlendSelfIllum=== | ===DecalBaseTimesLightmapAlphaBlendSelfIllum=== | ||
* Used in the materials <code>decalglasswindow003a.vmt</code>, <code>decalmetalvent004a.vmt</code> and <code>decalporthole001b.vmt</code> in these folders only. | * Used in the materials <code>decalglasswindow003a.vmt</code>, <code>decalmetalvent004a.vmt</code> and <code>decalporthole001b.vmt</code> in these folders only. | ||
* Replaced by [[LightmappedGeneric]] in numerous materials in both this folder and the [[Shaders_in_Props\|Props\]] folder. | |||
* Not found in released mod code. | * Not found in released mod code. | ||
===ShadowModel=== | ===ShadowModel=== | ||
Line 36: | Line 34: | ||
* Probably referred once (in <code>src\cl_dll\clientshadowmgr.cpp</code>) in the released mod code. | * Probably referred once (in <code>src\cl_dll\clientshadowmgr.cpp</code>) in the released mod code. | ||
* Do not confuse with the [[Material_Proxies|proxy]] by the same name. | * Do not confuse with the [[Material_Proxies|proxy]] by the same name. | ||
===Shadow=== | ===Shadow=== | ||
* Used in the materials <code>rendershadow.vmt</code> and <code>simpleshadow.vmt</code> only. | * Used in the materials <code>rendershadow.vmt</code> and <code>simpleshadow.vmt</code> only. | ||
* Do not confuse with the [[Material_Proxies|proxy]] by the same name. | * Do not confuse with the [[Material_Proxies|proxy]] by the same name. | ||
[[Category:Shaders]] | [[Category:Shaders]] |
Latest revision as of 08:08, 4 October 2011
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.
Subfolders
Only three types of shaders are used here: DecalModulate
, VertexLitGeneric
and Subrect
.
Dedicated Shaders
The following shaders are more or less exclusively used for this folder:
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.
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.
DecalBaseTimesLightmapAlphaBlendSelfIllum
- Used in the materials
decalglasswindow003a.vmt
,decalmetalvent004a.vmt
anddecalporthole001b.vmt
in these folders only. - Replaced by LightmappedGeneric in numerous materials in both this folder and the Props\ folder.
- Not found in released mod code.
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.
Shadow
- Used in the materials
rendershadow.vmt
andsimpleshadow.vmt
only. - Do not confuse with the proxy by the same name.