Open Asterune
SurfaceLight

SurfaceLight

Emits light from a selected face of a Part.

Creatable
Instance.new("SurfaceLight")
Inherits
LightInstance
Replication
Standard

Behavior

SurfaceLight emits light from a selected face of a Part.

Summary

Members15
Properties14
Methods1

Properties

Angle

SurfaceLight.Angle: number = 90

The angular extent of light emission, in degrees.

Brightness

SurfaceLight.Brightness: number = 1

The intensity multiplier applied to the emitted light.

Color

SurfaceLight.Color: Color3 = Color3.new(1, 1, 1)

The color of the emitted light.

ContactShadows

SurfaceLight.ContactShadows: boolean = false

Whether the light adds contact shadows near surface intersections.

Enabled

SurfaceLight.Enabled: boolean = true

Whether this light contributes illumination.

Face

SurfaceLight.Face: Enum.NormalId = Enum.NormalId.Front

The Part face on which the surface texture, light, or interface is placed.

IesProfile

SurfaceLight.IesProfile: Content = ""

The content identifier of the light's IES intensity profile.

Range

SurfaceLight.Range: number = 8

The maximum distance affected by the light, in studs.

RenderLayer

The rendering layer used for this geometry or light.

Shadows

SurfaceLight.Shadows: boolean = false

Whether this light casts shadows. Additional shadow-casting lights increase rendering work.

SourceRadius

SurfaceLight.SourceRadius: number = 0.25

The radius of the light source used for soft-shadow calculations.

Temperature

SurfaceLight.Temperature: number = 6500

The color temperature used to tint the light.

Texture

SurfaceLight.Texture: Content = ""

The content identifier of the texture used by this instance.

Volumetric

SurfaceLight.Volumetric: boolean = false

Whether the light contributes to volumetric lighting.

Methods

GetExecutionGroup

SurfaceLight:GetExecutionGroup(): ExecutionGroup?

Returns this instance if it is an ExecutionGroup. Otherwise returns the nearest ancestor ExecutionGroup, or nil when no group contains the instance.

Inherited members

Inherited47

Light