Difference between revisions of "Fixing lighting on a static prop"

From Valve Developer Community
Jump to: navigation, search
(Cleanup)
m (merge with Static_Props_show_up_black)
 
Line 1: Line 1:
 
{{stub}}
 
{{stub}}
 +
{{merge|Static_Props_show_up_black}}
 
[[File:Staticprop_compile.PNG|thumb|right|alt=prop_static settings|The proper compile syntax]]Lightmapped [[prop_static]] entities do not always get lit correctly. If this is the case, you will need to do the following:
 
[[File:Staticprop_compile.PNG|thumb|right|alt=prop_static settings|The proper compile syntax]]Lightmapped [[prop_static]] entities do not always get lit correctly. If this is the case, you will need to do the following:
  

Latest revision as of 07:57, 22 July 2018

prop_static settings
The proper compile syntax
Lightmapped prop_static entities do not always get lit correctly. If this is the case, you will need to do the following:
  1. Turn on expert compiling.
  2. In the "Compile/run commands:" box, click on the $light_exe option.
  3. Add the following to the command parameters before "-game":
    • -final
    • -both
    • -StaticPropPolys
    • -TextureShadows
    • -staticproplighting

Static props will now give off the correct shadows.