$reflectivity: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
[[File:Reflectivity.gif|thumb|Different reflectivity values. Click (twice!) for animation.]]
'''<code>$reflectivity</code>''' overrides a [[VTF]] file's embedded reflectivity value. It tells [[VRAD]] how much received light should be bounced off the material.
'''<code>$reflectivity</code>''' overrides a [[VTF]] file's embedded reflectivity value. It tells [[VRAD]] how much received light should be bounced off the material.
{{tip|$reflectivity only affects [[VRAD]].}}


== Usage ==
== Usage ==

Revision as of 07:10, 14 February 2011

Different reflectivity values. Click (twice!) for animation.

$reflectivity overrides a VTF file's embedded reflectivity value. It tells VRAD how much received light should be bounced off the material.

Tip.pngTip:$reflectivity only affects VRAD.

Usage

To bounce 50% of received light without modifying its shade:

$reflectivity "[.5 .5 .5]"

The value is a material vector.