Shaders in Decals\: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (→‎Subrect: Linked to future folders.)
m (→‎DecalModulate: Linked to tutorial.)
Line 23: Line 23:
===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===

Revision as of 20:31, 31 January 2008

The Decals\ folder of Source Materials.gcf (and its subfolders) contain shaders used for decals.


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 and decalporthole001b.vmt in these folders only.
  • 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 and simpleshadow.vmt only.
  • Do not confuse with the proxy by the same name.