Difference between revisions of "Shaders in Dev\"

From Valve Developer Community
Jump to: navigation, search
m (Directed some links.)
(screenspace_general: Updated and explained)
 
(2 intermediate revisions by 2 users not shown)
Line 78: Line 78:
 
===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.
+
* Allows custom pixel shader to be set if the VMT
 +
* Standard vertex shader used by post-processing effects
 +
* Released in Source 2007 Code
  
 
===WindowImposter===
 
===WindowImposter===

Latest revision as of 17:25, 25 January 2012

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.
  • Allows custom pixel shader to be set if the VMT
  • Standard vertex shader used by post-processing effects
  • Released in Source 2007 Code

WindowImposter

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