$reflectivity: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
[[File:Reflectivity.gif|thumb|Different reflectivity values. Click (twice!) for animation.]]
[[File:Reflectivity.gif|frame|right|Different reflectivity values.]]


'''<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 light should be bounced off the material, without affecting how much it receives.


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


== Usage ==
== Usage ==


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


$reflectivity "[.5 .5 .5]"
<source lang=php>$reflectivity "[.5 .5 .5]"</source>


The value is a [[material vector]].
The value is a [[material vector]].
[[Category:List of Shader Parameters|R]]


== External links ==
== External links ==
* [http://www.nodraw.net/2011/02/reflectivity Nodraw.net - brief explanation with screenshots of effects]
* [http://www.nodraw.net/2011/02/reflectivity Nodraw.net - brief explanation with screenshots of effects]
[[Category:List of Shader Parameters|R]]

Revision as of 09:17, 19 August 2011

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.

External links