Difference between revisions of "Shaders in Dev\"

From Valve Developer Community
Jump to: navigation, search
m (BlurFilterX: Corrected formatting typo.)
m (Directed some links.)
Line 1: Line 1:
 
The <code>Dev\</code> folder of <code>Source Materials.gcf</code> contains the following shaders:
 
The <code>Dev\</code> folder of <code>Source Materials.gcf</code> contains the following shaders:
 
  
 
*[[LightmappedGeneric]] is used for 77 materials.
 
*[[LightmappedGeneric]] is used for 77 materials.
*[[Shader Types and Parameters|LightmappedGeneric_DX6]] is used for the <code>dev_monitor.vmt</code> material (as a fallback shader for the ''LightmappedGeneric'' shader).
+
*[[Shaders_in_Nature\#LightmappedGeneric_DX6|LightmappedGeneric_DX6]] is used for the <code>dev_monitor.vmt</code> material (as a fallback shader for the ''LightmappedGeneric'' shader).
*[[Shader Types and Parameters|Water]] is used for 10 materials.
+
*[[Water (shader)|Water]] is used for 10 materials.
 
*[[Shaders_in_Nature\#Water_DX60|Water_DX60]] is used for 10 materials (as a fallback shader for the ''Water'' shader).
 
*[[Shaders_in_Nature\#Water_DX60|Water_DX60]] is used for 10 materials (as a fallback shader for the ''Water'' shader).
 
*[[Shaders_in_Nature\#Water_DX90|Water_DX90]] is used for the <code>dev_water3.vmt</code> material (as a fallback shader for the ''Water'' shader).
 
*[[Shaders_in_Nature\#Water_DX90|Water_DX90]] is used for the <code>dev_water3.vmt</code> material (as a fallback shader for the ''Water'' shader).
Line 11: Line 10:
 
*[[Shaders_in_Nature\#WorldVertexTransition|WorldVertexTransition]] is used for the <code>dev_blendmeasure.vmt</code> and <code>dev_blendmeasure2.vmt</code> materials.
 
*[[Shaders_in_Nature\#WorldVertexTransition|WorldVertexTransition]] is used for the <code>dev_blendmeasure.vmt</code> and <code>dev_blendmeasure2.vmt</code> materials.
 
*[[VertexLitGeneric]] is used for the <code>dev_measureice01.vmt</code> material.
 
*[[VertexLitGeneric]] is used for the <code>dev_measureice01.vmt</code> material.
 
 
  
  
Line 18: Line 15:
  
 
The following shaders are more or less exclusively used for this folder. Many of them have to do with bloom shading.
 
The following shaders are more or less exclusively used for this folder. Many of them have to do with bloom shading.
 
 
  
 
===BaseTimesMod2xEnvMap===
 
===BaseTimesMod2xEnvMap===
 
* Used in only one material: <code>dev_camo.vmt</code>
 
* Used in only one material: <code>dev_camo.vmt</code>
 
* Not found in released mod code.
 
* Not found in released mod code.
 
  
 
===Bloom===
 
===Bloom===
 
* Used in only one material: <code>bloom.vmt</code>
 
* Used in only one material: <code>bloom.vmt</code>
 
* Final pass for Bloom post-process shader.
 
* Final pass for Bloom post-process shader.
 
  
 
===BlurFilterX===
 
===BlurFilterX===
Line 40: Line 33:
 
* Not defined by released mod code, but materials are referred to.  
 
* Not defined by released mod code, but materials are referred to.  
 
* Used to vertically blur the screen. One of two blur passes for Bloom.
 
* Used to vertically blur the screen. One of two blur passes for Bloom.
 
  
 
===Downsample===
 
===Downsample===
Line 46: Line 38:
 
* Not found in released mod code (but materials possibly containing it are referred to).
 
* Not found in released mod code (but materials possibly containing it are referred to).
 
* Downsamples the framebuffer (likely 4x). Used as first pass of Bloom.
 
* Downsamples the framebuffer (likely 4x). Used as first pass of Bloom.
 
  
 
===Downsample_nohdr===
 
===Downsample_nohdr===
Line 53: Line 44:
 
* Downsamples the framebuffer (likely 4x). Used as first pass of Bloom.
 
* Downsamples the framebuffer (likely 4x). Used as first pass of Bloom.
 
* Unsure of the difference between this and the previous ''Downsample'' shader.
 
* Unsure of the difference between this and the previous ''Downsample'' shader.
 
  
 
===floattoscreen===
 
===floattoscreen===
Line 59: Line 49:
 
* Not found in released mod code.
 
* Not found in released mod code.
 
* Probably something to do with bloom shading.
 
* Probably something to do with bloom shading.
 
  
 
===floatcombine===
 
===floatcombine===
Line 65: Line 54:
 
* Material referred to in <code>src\cl_dll\view_scene.cpp</code>.
 
* Material referred to in <code>src\cl_dll\view_scene.cpp</code>.
 
* Probably something to do with bloom.
 
* Probably something to do with bloom.
 
  
 
===floatcombine_autoexpose===
 
===floatcombine_autoexpose===
Line 71: Line 59:
 
* Not found in released mod code.
 
* Not found in released mod code.
 
* Probably something to do with bloom.
 
* Probably something to do with bloom.
 
  
 
===hdrselectrange===
 
===hdrselectrange===
 
* Used in only one material: <code>hdrselectrange.vmt</code>
 
* Used in only one material: <code>hdrselectrange.vmt</code>
 
* Not found in released mod code.
 
* Not found in released mod code.
 
  
 
===MonitorScreen===
 
===MonitorScreen===
 
* Used in only one material: <code>dev_tvmonitor2a.vmt</code>
 
* Used in only one material: <code>dev_tvmonitor2a.vmt</code>
 
* Not found in released mod code.
 
* Not found in released mod code.
 
  
 
===sample4x4===
 
===sample4x4===
 
* Used in 6 materials.
 
* Used in 6 materials.
 
* Not found in released mod code.
 
* Not found in released mod code.
 
  
 
===sample4x4_blend===
 
===sample4x4_blend===
 
* Used by the materials <code>blendfb0.vmt</code> and <code>blendfb1.vmt</code>.
 
* Used by the materials <code>blendfb0.vmt</code> and <code>blendfb1.vmt</code>.
 
* Not found in released mod code.
 
* Not found in released mod code.
 
  
 
===screenspace_general===
 
===screenspace_general===
 
* Used by the materials <code>lumcompare.vmt</code> and <code>no_pixel_write.vmt</code>.
 
* Used by the materials <code>lumcompare.vmt</code> and <code>no_pixel_write.vmt</code>.
 
* Not found in released mod code.
 
* Not found in released mod code.
 
  
 
===WindowImposter===
 
===WindowImposter===

Revision as of 17:37, 12 February 2008

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


Dedicated Shaders

The following shaders are more or less exclusively used for this folder. Many of them have to do with bloom shading.

BaseTimesMod2xEnvMap

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

Bloom

  • Used in only one material: bloom.vmt
  • Final pass for Bloom post-process shader.

BlurFilterX

  • Used by the materials blurfilterx.vmt and blurfilterx_nohdr.vmt only.
  • Not defined by released mod code, but materials are referred to.
  • Used to horizontally blur the screen. One of two blur passes for Bloom.

BlurFilterY

  • Used by the materials blurfiltery.vmt, blurfiltery_nohdr.vmt and blurfiltery_and_add_nohdr.vmt only.
  • Not defined by released mod code, but materials are referred to.
  • Used to vertically blur the screen. One of two blur passes for Bloom.

Downsample

  • Used in only one material: downsample.vmt
  • Not found in released mod code (but materials possibly containing it are referred to).
  • Downsamples the framebuffer (likely 4x). Used as first pass of Bloom.

Downsample_nohdr

  • Used in only one material: downsample_non_hdr.vmt
  • Not found in released mod code.
  • Downsamples the framebuffer (likely 4x). Used as first pass of Bloom.
  • Unsure of the difference between this and the previous Downsample shader.

floattoscreen

  • Used by the materials copyfullframefb.vmt and copyfullframefb_vanilla.vmt only.
  • Not found in released mod code.
  • Probably something to do with bloom shading.

floatcombine

  • Used in only one material: floattoscreen_combine.vmt
  • Material referred to in src\cl_dll\view_scene.cpp.
  • Probably something to do with bloom.

floatcombine_autoexpose

  • Used in only one material: floattoscreen_combine_autoexpose.vmt
  • Not found in released mod code.
  • Probably something to do with bloom.

hdrselectrange

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

MonitorScreen

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

sample4x4

  • Used in 6 materials.
  • Not found in released mod code.

sample4x4_blend

  • Used by the materials blendfb0.vmt and blendfb1.vmt.
  • Not found in released mod code.

screenspace_general

  • Used by the materials lumcompare.vmt and no_pixel_write.vmt.
  • Not found in released mod code.

WindowImposter

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