DirectionalLight
From Crumbled World Wiki
Inheritance
Static functions
| return | function | description |
|---|---|---|
| DirectionalLight | new(Vec3 direction, Vec3 color) | Create a new Instance of the the DirectionalLight |
Functions
| return | function | description |
|---|---|---|
| Vec3 | getColor() | Get the color of the light. |
| Vec3 | getDirection() | Get the direction of the light. |
| setColor(Vec3 color) | Set the color of the light. | |
| setDirection(Vec3 direction) | Set the direction of the light. |