Lights.rad: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(cleanup)
(Removed todo, sadly you can't :( Tested.)
Line 7: Line 7:
#Forces shadows ''of a [[model]]'' to be calculated '''using its material's [[$translucent|translucency]]''', as opposed to its polygons.
#Forces shadows ''of a [[model]]'' to be calculated '''using its material's [[$translucent|translucency]]''', as opposed to its polygons.
#:<pre>forcetextureshadow props_wasteland/interior_fence001a.mdl</pre>
#:<pre>forcetextureshadow props_wasteland/interior_fence001a.mdl</pre>
{{todo|Can you force texture shadows on a material?}}


== See Also ==
== See Also ==

Revision as of 04:07, 17 September 2008

Lights.rad is a plain text file that can be used to manipulate the way VRAD handles given materials when compiling static lighting. It performs three functions:

  1. Makes a material applied to a brush surface emit light (numbers are RGBA).
    lights/my_lightpanel	250 240 205 100
  2. Prevents static shadows from being cast on a material.
    noshadow tree_deciduous_01a_branches.vmt
  3. Forces shadows of a model to be calculated using its material's translucency, as opposed to its polygons.
    forcetextureshadow props_wasteland/interior_fence001a.mdl

See Also