Shaders in Engine\: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(These shader sources can be found in the modern SDK (some were added with TF2 source code, others were there already))
 
Line 25: Line 25:
===FilmGrain===
===FilmGrain===
* Used in only one material: <code>filmgrain.vmt</code>
* Used in only one material: <code>filmgrain.vmt</code>
* Can be found in [[Source SDK 2013 MP]] source code.
* 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"
* Can be found in [[Source SDK 2013 MP]] source 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.
* Can be found in [[Source SDK 2013 MP]] source code.
* Can be found in Source SDK 2013 MP source code.
* Reported not to work.
* Reported not to work.



Latest revision as of 14:29, 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

  • Used in only one material: filmgrain.vmt
  • Can be found in Source SDK 2013 MP source code.

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.