Shaders in Engine\: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(These shader sources can be found in the modern SDK (some were added with TF2 source code, others were there already))
Line 16: Line 16:
===DepthWrite===
===DepthWrite===
* Used in only one material: <code>depthwrite.vmt</code>
* Used in only one material: <code>depthwrite.vmt</code>
* Not found in released mod code.
* Can be found in [[Source SDK 2013]] source code.
* Do not confuse this shader with the proxy by the same name.
* Do not confuse this shader with the proxy by the same name.


===FilmDust===
===FilmDust===
* Used in only one material: <code>filmdust.vmt</code>
* Used in only one material: <code>filmdust.vmt</code>
* Not found in released mod code.
* Can be found in [[Source SDK 2013 MP]] source code.


===FilmGrain===
===FilmGrain===
* Used in only one material: <code>filmgrain.vmt</code>
* Used in only one material: <code>filmgrain.vmt</code>
* Not found in released mod code (but probably referred to).
* Can be found in [[Source SDK 2013 MP]] source code.


===InternalFrameSync===
===InternalFrameSync===
Line 37: Line 37:
* Used in only one material: <code>shadowbuild.vmt</code>
* Used in only one material: <code>shadowbuild.vmt</code>
* Valve remark: "Used to generate render-to-texture shadows"
* Valve remark: "Used to generate render-to-texture shadows"
* Not found in released mod code.
* Can be found in [[Source SDK 2013 MP]] source code.


===VolumetricFog===
===VolumetricFog===
* Used by the material <code>Engine\volumetricfog.vmt</code>. Also used for shadertesting. (See [[Shaders in shadertest\]].)
* Used by the material <code>Engine\volumetricfog.vmt</code>. Also used for shadertesting. (See [[Shaders in shadertest\]].)
* No parameters are given.
* No parameters are given.
* Not found in released mod code.
* Can be found in [[Source SDK 2013 MP]] source code.
* Reported not to work.
* Reported not to work.



Revision as of 14:18, 30 June 2025

The Engine\ folder of Source Materials.gcf contains the following shaders:


Dedicated Shaders

The following shaders are more or less exclusively used for this folder:


ColorCorrection

  • Used in only one material: colorcorrection.vmt

DepthWrite

  • Used in only one material: depthwrite.vmt
  • Can be found in Source SDK 2013 source code.
  • Do not confuse this shader with the proxy by the same name.

FilmDust

FilmGrain

InternalFrameSync

  • Used by only one material: framesync.vmt.
  • Not found in released mod code.

Occlusion

  • Used by only one material: occlusionproxy.vmt

ShadowBuild

  • Used in only one material: shadowbuild.vmt
  • Valve remark: "Used to generate render-to-texture shadows"
  • Can be found in Source SDK 2013 MP source code.

VolumetricFog

  • Used by the material Engine\volumetricfog.vmt. Also used for shadertesting. (See Shaders in shadertest\.)
  • No parameters are given.
  • Can be found in Source SDK 2013 MP source code.
  • Reported not to work.

WriteZ

  • Used in only one material: WriteZ.vmt
  • Material referred to in src\cl_dll\c_vguiscreen.cpp.