$ssbump: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
'''$ssbump''' is a [[boolean]] [[material]] command that flags the material's [[$bumpmap]] as being self-shadowing.
'''$ssbump''' is a [[material]] parameter that flags a [[$bumpmap]] as being self-shadowing. It is only supported with <code>[[LightmappedGeneric]]</code>.
 
You can read more about the technology behind it [http://www.valvesoftware.com/publications/2007/SIGGRAPH2007_EfficientSelfShadowedRadiosityNormalMapping.pdf in this paper].
 
{{tip|Self-shadowed normal mapping is actually ''faster'' than the standard method!}}


== Example ==
== Example ==
Line 9: Line 13:
  $basetexture nature/rockwall_cave02a
  $basetexture nature/rockwall_cave02a
  $surfaceprop concrete
  $surfaceprop concrete
  $bumpmap Nature/rockwall_cave_02a_height-ssbump
  $bumpmap nature/rockwall_cave_02a_height-ssbump
  '''$ssbump 1'''
  '''$ssbump 1'''
  }
  }
Line 15: Line 19:
== Creating self-shadowing bump maps ==
== Creating self-shadowing bump maps ==


...anyone know?
Valve's tools for creating ssbumps aren't in the SDK yet, [http://forums.facepunchstudios.com/showthread.php?t=529746 but there is a way to create them manually].


[[Category:List of Shader Parameters|S]]
[[Category:List of Shader Parameters|S]]

Revision as of 06:08, 18 September 2008

$ssbump is a material parameter that flags a $bumpmap as being self-shadowing. It is only supported with LightmappedGeneric.

You can read more about the technology behind it in this paper.

Tip.pngTip:Self-shadowed normal mapping is actually faster than the standard method!

Example

rockwall_cave_02a_height-ssbump.vtf
LightmappedGeneric
{
	$basetexture nature/rockwall_cave02a
	$surfaceprop concrete
	$bumpmap nature/rockwall_cave_02a_height-ssbump
	$ssbump 1
}

Creating self-shadowing bump maps

Valve's tools for creating ssbumps aren't in the SDK yet, but there is a way to create them manually.