Shaders in Nature\: 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))
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
The <code>Nature\</code> folder of <code>Source Materials.gcf</code> contains the following shaders:
The <code>Nature\</code> folder of <code>hl2_misc_dir.vpk</code> contains the following shaders:


*[[LightmappedGeneric]] is used for 71 materials.
*[[LightmappedGeneric]] is used for 71 materials.
Line 13: Line 13:
===Cloud===
===Cloud===
* Only used by the <code>cloud001c.vmt</code> material. Also used by 2 materials in the [[Shaders in shadertest\|shadertest\]] folder.
* Only used by the <code>cloud001c.vmt</code> material. Also used by 2 materials in the [[Shaders in shadertest\|shadertest\]] folder.
* Not found in released mod code.
* Can be found in [[Source SDK 2013]] source code.


===LightmappedGeneric_DX6===
===LightmappedGeneric_DX6===
Line 39: Line 39:
* Used by 46 materials in this folder. Also used in the <code>Concrete\</code> and [[Shaders in Dev\|Dev\]] folders, to a much lesser extent.
* Used by 46 materials in this folder. Also used in the <code>Concrete\</code> and [[Shaders in Dev\|Dev\]] folders, to a much lesser extent.
* Mostly used in materials starting with "<code>blend</code>".
* Mostly used in materials starting with "<code>blend</code>".
* ''Probably'' referred to in released mod code.
* Can be found in [[Source 2007|SDK 2007]] and Source SDK 2013 source code.
* See [[WorldVertexTransition]] for more information.
* See [[WorldVertexTransition]] for more information.


===WorldVertexTransition_DX9===
===WorldVertexTransition_DX9===
* Used only in the <code>canal_reeds.vmt</code> material (as a fallback shader for the <code>WorldVertexTransition</code> shader).
* Used only in the <code>canal_reeds.vmt</code> material (as a fallback shader for the <code>WorldVertexTransition</code> shader).
* Not found in released mod code.
* Can be found in Source SDK 2007 and Source SDK 2013 source code.


[[Category: Shaders]]
[[Category: Shaders]]

Latest revision as of 14:34, 30 June 2025

The Nature\ folder of hl2_misc_dir.vpk contains the following shaders:

  • LightmappedGeneric is used for 71 materials.
  • LightmappedGeneric_DX9 is used for 5 materials (as a fallback shader for LightmappedGeneric and WorldVertexTransition).
  • Water is used for several materials.
  • UnlitGeneric is used for the tree_card_clump.vmt and the water_movingplane_beneath.vmt materials.


Dedicated Shaders

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

Cloud

  • Only used by the cloud001c.vmt material. Also used by 2 materials in the shadertest\ folder.
  • Can be found in Source SDK 2013 source code.

LightmappedGeneric_DX6

  • Used by the materials toxicslime002a.vmt and water_movingplane.vmt as a fallback shader for LightmappedGeneric. Also used in the Dev\ and Glass\ folders.
  • Referred to twice in src\materialsystem\stdshaders\lightmappedgeneric_dx8.cpp in the released mod code.

Water_DX60

  • Used by 22 materials (as a fallback shader for the Water shader) in this folder. Also used in the Dev\ folder to a lesser extent.
  • Referred to in src\materialsystem\stdshaders\water_dx60.cpp and src\materialsystem\stdshaders\water_dx80.cpp in the released mod code.

Water_DX80

  • Used by 19 materials (as a fallback shader for the Water shader) in this folder only.
  • Defined in src\materialsystem\stdshaders\water_dx80.cpp in the released mod code.

Water_DX81

  • Used by 15 materials (as a fallback shader for the Water shader) in this folder only.
  • Defined in src\materialsystem\stdshaders\water_dx81.cpp in the released mod code.

Water_DX90

  • Only used by 3 materials in this folder. Also used by the dev_water3.vmt material in the Dev\ folder.
  • Defined in src\materialsystem\stdshaders\water.cpp in the released mod code.
  • Remarks from Valve: "Only used in dx90 and higher", "NOTE: These are only used by DX9 water, since forceExpensive isn't defined.", "ALSO NOTE: This *cannot* exist in the root level, because the presence of this is used to determine whether to do the reflection in the client DLL"

WorldVertexTransition

  • Used by 46 materials in this folder. Also used in the Concrete\ and Dev\ folders, to a much lesser extent.
  • Mostly used in materials starting with "blend".
  • Can be found in SDK 2007 and Source SDK 2013 source code.
  • See WorldVertexTransition for more information.

WorldVertexTransition_DX9

  • Used only in the canal_reeds.vmt material (as a fallback shader for the WorldVertexTransition shader).
  • Can be found in Source SDK 2007 and Source SDK 2013 source code.