s&
infoAbout
infoAbout s&box newspaperLatest News published_with_changesChanges mapRoadmap monitoringMetrics
gamesGames
sports_esportsBrowse Games exploreDiscover Games
categoryWorkshop
sports_esportsGames landscapeMaps view_in_arModels textureMaterials apparelClothing constructionMore..
forumForum menu_bookLearn
docsDocumentation apiApi Reference schoolTutorials manage_searchCode Search
inputLog in with Steam chevron_leftChange Language
简体中文EnglishРусскийEspañolPortuguês-BrasilDeutsch日本語FrançaisPolskiTürkçe한국어PirateItalianoไทย繁體中文УкраїнськаČeštinaNederlandsMagyarDanskSuomiSvenskaNorskΕλληνικάRomânăБългарскиTiếng ViệtBahasa IndonesiaEspañol-Latinoaméricaالعربية
Api
Classes
SceneLight
chevron_left Classes
class
SceneLight

Constructors

remove_circleSceneLight

Properties

data_objectConstantAttenuationdata_objectFogLightingdata_objectFogStrengthdata_objectLightColordata_objectLightCookiedata_objectLinearAttenuationdata_objectQuadraticAttenuationdata_objectRadiusdata_objectRenderDiffusedata_objectRenderSpeculardata_objectRenderTransmissivedata_objectShadowBiasdata_objectShadowHardnessdata_objectShadowsEnableddata_objectShadowTextureResolutiondata_objectShapedata_objectShapeSize
SceneLight
Base class for light scene objects for use with a Sandbox.SceneWorld.
class Sandbox .account_tree extends SceneObject
Sandbox.Engine

build Constructors 1

SceneLight (sceneWorld, position, radius, color)
obsolete

data_object Properties 17

ConstantAttenuation
float
The light attenuation constant term
FogLighting
FogLightingMode
FogStrength
float
LightColor
Color
Color and brightness of the light
LightCookie
Texture
Access the LightCookie - which is a texture that gets drawn over the light
LinearAttenuation
float
The light attenuation linear term
QuadraticAttenuation
float
The light attenuation quadratic term
Radius
float
Radius of the light in units
RenderDiffuse
bool
Should this light contribute diffuse lighting?
RenderSpecular
bool
Should this light contribute specular highlights?
RenderTransmissive
bool
Should this light contribute transmissive lighting (light passing through surfaces)?
ShadowBias
float
ShadowHardness
float
ShadowsEnabled
bool
Enable or disable shadow rendering
ShadowTextureResolution
int
Get or set the resolution of the shadow map. If this is zero the engine will decide what it should use.
Shape
LightShape
ShapeSize
Vector2

Inheritance

SceneObject
SceneLight
SceneCubemap
SceneDirectionalLight
ScenePointLight
SceneSpotLight
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter