Lights.rad: Difference between revisions
Jump to navigation
Jump to search
m (fixup) |
TomEdwards (talk | contribs) (cleanup) |
||
Line 1: | Line 1: | ||
'''Lights.rad''' is a plain text file that can be used to manipulate the way [[Vrad|VRAD]] handles given [[material]]s when compiling static lighting. It performs three functions: | |||
'''Lights.rad''' | |||
#Makes a material applied to a [[brush]] surface '''emit light''' (numbers are [[RGBA]]). | |||
#:<pre>lights/my_lightpanel 250 240 205 100</pre> | |||
#'''Prevents static shadows''' from being cast on a material. | |||
#:<pre>noshadow tree_deciduous_01a_branches.vmt</pre> | |||
#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> | |||
{{todo|Can you force texture shadows on a material?}} | |||
== See Also == | |||
* [[Vrad|VRAD]] | |||
* [[Creating a Material]] | |||
[[Category:Level design]] | |||
Revision as of 03:04, 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:
- Makes a material applied to a brush surface emit light (numbers are RGBA).
lights/my_lightpanel 250 240 205 100
- Prevents static shadows from being cast on a material.
noshadow tree_deciduous_01a_branches.vmt
- Forces shadows of a model to be calculated using its material's translucency, as opposed to its polygons.
forcetextureshadow props_wasteland/interior_fence001a.mdl
Todo: Can you force texture shadows on a material?