Skip to content

Extended from Environment LightingEnvironment

This class is one of the most important components of a scene, is used to manage everything related with the light

Properties

Color3 AmbientColor

This is the color of every pixel of the ambient, we can say is the darkness color

number AmbientTransparency

This is the transparency of the ambient, we can say is the darkness transparency

number UpdateFrequency

This is the seconds between every update of the pixels in the screen

number LightIntensity

This is the intensity for all the lights in the scene

Methods

LightingEnvironment Constructor(scene: Scene)

void DrawPixels(pixelSize: number)

Draws the pixels for the scene with the specified pixel size

void UpdateScreen()

Updates the position, the transparency and the color of the ambient

Events

Name
Description