$reflectivity: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (clarifying)
Line 11: Line 11:
<source lang=php>$reflectivity "[.5 .5 .5]"</source>
<source lang=php>$reflectivity "[.5 .5 .5]"</source>


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


== External links ==
== External links ==

Revision as of 06:33, 6 January 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.

Tip.pngTip:$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