s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
published_with_changes
Changes
Release-by-release changelog
Games
Browse Games
Discover Games
gamejams
voting
Game Jam III
Ends
Fri 25 Sep
Theme
One More Round
Voting is open. Play the entries and pick the winner.
£
50,000
prizepool
View the jam
Workshop
Playable
sports_esports
Games
Standalone games and gamemodes
Assets
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
apps
Everything
Every asset type in one list
Forum
Learn
Documentation
rocket_launch
Getting Started
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
input
Log in with Steam
Api
Components
Light
chevron_left
Components
class
Light
Constructors
lock
Light
Properties
data_object
Contribution
data_object
FogMode
data_object
FogStrength
data_object
LightColor
data_object
ShadowBias
data_object
ShadowHardness
data_object
Shadows
Methods
lock
CreateSceneObject
lock
OnAwake
lock
OnDisabled
lock
OnEnabled
lock
OnTagsChanged
Light
class
Sandbox
.
account_tree
extends
Component
abstract
Sandbox.Engine
build
Constructors
1
Light
(
)
data_object
Properties
7
Contribution
LightContribution
Which lighting terms this light is allowed to contribute to. For example, turn off Sandbox.Light.LightContribution.Specular to stop a light producing highlights.
FogMode
FogInfluence
FogStrength
float
LightColor
Color
The main color of the light
ShadowBias
float
ShadowHardness
float
Shadows
bool
Should this light cast shadows?
functions
Methods
5
CreateSceneObject
(
)
SceneLight
OnAwake
(
)
OnDisabled
(
)
OnEnabled
(
)
OnTagsChanged
(
)
Tags have been updated - lets update our light's tags
Inheritance
Component
Light
DirectionalLight
PointLight
SpotLight
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.