s&
newspaperAbout
infoAbout s&box newspaperLatest News published_with_changesChanges mapRoadmap monitoringMetrics
gamesGames
sports_esportsBrowse Games rocketDiscover Games
business_centerWorkshop
sports_esportsGames landscapeMaps chairModels textureMaterials apparelClothing constructionMore..
forumForum docsDocs
docsDocumentation dashboardApi Reference schoolTutorials
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_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 14

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
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