Howto:Illuminate faces: Difference between revisions

Jump to navigation Jump to search
→‎Illuminate during dark: explanation of the 1.57 horizon
(→‎Illuminate during dark: explanation of the 1.57 horizon)
Line 54: Line 54:


===Illuminate during dark===
===Illuminate during dark===
If you want a face to illuminate during dark we use the sun angle property (/sim/time/sun-angle-rad). A common value where our face should start illuminate is 1.57. But you could change the value if you want to illuminate earlier or later. Depends on your needs.
If you want a face to illuminate during dark we use the sun angle property (/sim/time/sun-angle-rad). The value is expressed in radians from the zenith, so a common value where our face should start illuminate is pi/2, or 1.57, right on the horizon. But you could change the value if you want to illuminate earlier or later. Depends on your needs.


'''To turn lights on if the sky is dark:'''
'''To turn lights on if the sky is dark:'''
67

edits

Navigation menu