s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News published_with_changesChangesRelease-by-release changelog
Games
Browse Games Discover Games
gamejamslive now

Game Jam III

Ends Fri 25 Sep
ThemeOne More Round

The jam is running. Build something, or play the entries.

£50,000
prizepool
View the jam
Workshop
Playable
sports_esportsGamesStandalone games and gamemodes
Assets
landscapeMaps view_in_arModels textureMaterials apparelClothing
appsEverythingEvery asset type in one list
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
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.
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter