$reflectivity: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (clarifying)
m (changed the tip to a note)
Line 3: Line 3:
'''<code>$reflectivity</code>''' overrides a [[VTF]] file's embedded reflectivity value. It tells [[VRAD]] how much light should be bounced off the material, without affecting how much it receives.
'''<code>$reflectivity</code>''' overrides a [[VTF]] file's embedded reflectivity value. It tells [[VRAD]] how much light should be bounced off the material, without affecting how much it receives.


{{tip|$reflectivity only affects [[static light]].}}
{{note|$reflectivity only affects [[static light]].}}


== Usage ==
== Usage ==

Revision as of 13:14, 6 February 2019

Different reflectivity values.

$reflectivity overrides a VTF file's embedded reflectivity value. It tells VRAD how much light should be bounced off the material, without affecting how much it receives.

Note.pngNote:$reflectivity only affects static light.

Usage

To bounce 50% of received light:

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

The value is a material vector, representing a RGB color value.

External links