Lighting
Summary
[!NOTE]
Lightingis a service and cannot becreatedordestroyed.
There are two main controls under Lighting’s properties:
Ambientis the general lighting that every object receives regardless of its position or rotation.Sunis the light placed on object faces that are in direct view of the sun. If shadows are enabled, then parts of a face can be blocked from the sun.
Properties
Properties of Lighting, in the order they appear on Vortex Studio.- Ambient Color:
Color3 - Brightness:
Float - Sun Color:
Color3 - Sun Brightness:
Float - Sun Shadows:
Boolean
Appearance
Properties
Ambient Color
Color3
Determines the visible color of thepart. Will also affect the part’sMaterialcolor.
Brightness
Float
Determines how bright theambientlighting is.
Position
Vector3
This value hasno effect.
Rotation
Vector3
Determines the angle at which sunlight hits objects, and as such the dimensions of shadows.
Size
Vector3
This value isread-onlyhasno effect.
Sun Brightness
Float
Determines how bright thesunlighting is.
Sun Color
Color3
Determines the color of sunlight that hits objects. Will blend with the ambient coloring.
Sun Shadows
Boolean
Toggles shadows globally (from the sun). Currently, there are no other types of lights that create shadows, so this is a toggle button for every shadow in your game.