Lights.rad: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(cleanup)
(rewrote it to compact and concise it)
 
(14 intermediate revisions by 6 users not shown)
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:
{{disambig}}


#Makes a material applied to a [[brush]] surface '''emit light''' (numbers are [[RGBA]]).
{{file|lights|rad}} is a [[RAD file]] which is always automatically read by the lighting compilers. This is used to create texlights. In this file is a texture then an RGB value followed by a brightness value.  
#:<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?}}
* For creation and use of <code>lights.rad</code> file, see the [[RAD file]] page.
* For a list of {{src|4.1}} games' <code>lights.rad</code> file, see the [[:Category:Source RAD files]] page.
* For a list of {{goldsrc|4.1}} games' <code>lights.rad</code> file, see the [[:Category:GoldSrc RAD files]] page.


== See Also ==
[[Category:RAD]]
* [[Vrad|VRAD]]
* [[Creating a Material]]
 
[[Category:Level design]]

Latest revision as of 12:57, 6 August 2025

Icon-disambig.png
This is a disambiguation page, a list of pages that otherwise might share the same title.
If an article link referred you to this title, you might want to go back and fix it to point directly to the intended page.

🖿lights.rad is a RAD file which is always automatically read by the lighting compilers. This is used to create texlights. In this file is a texture then an RGB value followed by a brightness value.