Shaders in Nature\

From Valve Developer Community
Jump to navigation Jump to search

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.
  • Not found in released mod 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".
  • Probably referred to in released mod code.
  • See WorldVertexTransition for more information.

WorldVertexTransition_DX9

  • Used only in the canal_reeds.vmt material (as a fallback shader for the WorldVertexTransition shader).
  • Not found in released mod code.