s&
newspaper
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
rocket
Discover Games
business_center
Workshop
sports_esports
Games
landscape
Maps
chair
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
docs
Docs
docs
Documentation
dashboard
Api Reference
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
Classes
DirectionalLight
chevron_left
Classes
class
DirectionalLight
search
Constructors
functions
DirectionalLight
Properties
data_object
ShadowCascadeCount
data_object
ShadowCascadeSplitRatio
data_object
SkyColor
data_object
Visualizer
Methods
lock
CreateSceneObject
lock
DrawGizmos
lock
OnAwake
menu
DirectionalLight
A directional light that casts shadows, like the sun.
class
Sandbox
.
account_tree
extends
Light
Sandbox.Engine
build
Constructors
1
DirectionalLight
(
)
data_object
Properties
4
ShadowCascadeCount
int
Number of cascades to split the view frustum into for the whole scene dynamic shadow. More cascades result in better shadow resolution, but adds significant rendering cost. User settings will set a maximum.
ShadowCascadeSplitRatio
float
Controls how cascades 2+ are distributed between the first cascade boundary and the far clip. 0 is uniform, 1 is fully logarithmic.
SkyColor
Color
Color of the ambient sky color This is kept for long term support, the recommended way to do this is with an Ambient Light component.
Visualizer
CascadeVisualizer
functions
Methods
3
CreateSceneObject
(
)
SceneLight
DrawGizmos
(
)
OnAwake
(
)
Inheritance
Component
Light
DirectionalLight
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.