forked from mariofv/LittleOrionEngine
-
Notifications
You must be signed in to change notification settings - Fork 1
Light
Mario Fernández Villalba edited this page Jan 28, 2020
·
1 revision
Component Light is used to represent a source of Light in the Scene. It has 3 different paramateres that will be used in light equations. This parameters are:
- Light position: It will be extracted from the Component Transform of the GameObject.
- Light color: The color of the Light source.
- Light intensity: It is a factor that multiplies Light color before the Light calculations.
At the moment the engine supports a unique Light, so the first created GameObject containing a Component Light will be considered in Light calculations.