Skip to content

Lighting

Summary

[!NOTE] Lighting is a service and cannot be created or destroyed.

There are two main controls under Lighting’s properties:

  • Ambient is the general lighting that every object receives regardless of its position or rotation.
  • Sun is 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.

Properties

Ambient Color

Color3

Determines the visible color of the part. Will also affect the part’s Material color.


Brightness

Float

Determines how bright the ambient lighting is.


Position

Vector3

This value has no effect.


Rotation

Vector3

Determines the angle at which sunlight hits objects, and as such the dimensions of shadows.


Size

Vector3

This value is read-only has no effect.


Sun Brightness

Float

Determines how bright the sun lighting 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.