Difference between revisions of "Shaders in Debug\"

From Valve Developer Community
Jump to: navigation, search
m (Fixed link.)
m (Dedicated Shaders)
 
Line 13: Line 13:
 
===Wireframe===
 
===Wireframe===
 
* Used for 14 materials in this folder, out of a 19 materials in total.
 
* Used for 14 materials in this folder, out of a 19 materials in total.
*
 
 
  
 
===DebugLightingOnly===
 
===DebugLightingOnly===
 
* Only used by the material <code>debuglightingonly.vmt</code>.  
 
* Only used by the material <code>debuglightingonly.vmt</code>.  
 
* Not found in released mod code.  
 
* Not found in released mod code.  
 
  
 
===DebugLuxels===
 
===DebugLuxels===
 
* Used by the materials <code>debugluxels.vmt</code> and <code>debugluxelsnoalpha.vmt</code>. Also used for the [[Valve Hammer Editor]]. (See [[Shaders_in_Editor\#DebugLuxels|Shaders in Editor\]].)
 
* Used by the materials <code>debugluxels.vmt</code> and <code>debugluxelsnoalpha.vmt</code>. Also used for the [[Valve Hammer Editor]]. (See [[Shaders_in_Editor\#DebugLuxels|Shaders in Editor\]].)
 
* Not found in released mod code.
 
* Not found in released mod code.
 
  
 
===hsv===
 
===hsv===
 
* Used in only one material: <code>hsv.vmt</code>
 
* Used in only one material: <code>hsv.vmt</code>
 
* This material is directly referred to in <code>src\cl_dll\view_scene.cpp</code> in the mod code.
 
* This material is directly referred to in <code>src\cl_dll\view_scene.cpp</code> in the mod code.
 
  
 
===ShowDestAlpha===
 
===ShowDestAlpha===
* Used in only four materials <code>showblurredcolor.vmt</code>, <code>showdestalpha.vmt</code>, <code>showdestalphatimescolor_blurred.vmt</code>  
+
* Used in only four materials <code>showblurredcolor.vmt</code>, <code>showdestalpha.vmt</code>, <code>showdestalphatimescolor_blurred.vmt</code> and <code>showdestalpha_blurred.vmt</code>, all in this folder.
 
 
and <code>showdestalpha_blurred.vmt</code>, all in this folder.
 
 
* Not found in released mod code.
 
* Not found in released mod code.
 
  
 
===VertexNormals===
 
===VertexNormals===
 
* Use only in one material: <code>debugworldnormals.vmt</code>
 
* Use only in one material: <code>debugworldnormals.vmt</code>
 
* Not found in released mod code.
 
* Not found in released mod code.
 
  
 
===yuv===
 
===yuv===
Line 47: Line 38:
 
* Converts the screen from RGB to YUV colorspace. Post-process shader.  
 
* Converts the screen from RGB to YUV colorspace. Post-process shader.  
 
* Material referred to in <code>src\cl_dll\view_scene.cpp</code>
 
* Material referred to in <code>src\cl_dll\view_scene.cpp</code>
 
  
 
[[Category:Shaders]]
 
[[Category:Shaders]]

Latest revision as of 13:39, 18 April 2011

The Debug\ folder of Source Materials.gcf contain shaders dedicated to debugging purposes.


Dedicated Shaders

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


Wireframe

  • Used for 14 materials in this folder, out of a 19 materials in total.

DebugLightingOnly

  • Only used by the material debuglightingonly.vmt.
  • Not found in released mod code.

DebugLuxels

hsv

  • Used in only one material: hsv.vmt
  • This material is directly referred to in src\cl_dll\view_scene.cpp in the mod code.

ShowDestAlpha

  • Used in only four materials showblurredcolor.vmt, showdestalpha.vmt, showdestalphatimescolor_blurred.vmt and showdestalpha_blurred.vmt, all in this folder.
  • Not found in released mod code.

VertexNormals

  • Use only in one material: debugworldnormals.vmt
  • Not found in released mod code.

yuv

  • Used in only one material: yuv.vmt
  • Converts the screen from RGB to YUV colorspace. Post-process shader.
  • Material referred to in src\cl_dll\view_scene.cpp