Class OGLDirLight
About :
A directional light is a ligth at an infinite position but sending ligth in a given direction The sun can be modelled with a directional light
Functions
Function | summury |
---|---|
__init__(self, key=None) | |
set_direction(self, direction=(0, 0, -1)) | Set direction (more…) |
__str__(self) | To string translator (more…) |
Methods desciption :
init
def __init__(self, key=None)
set_direction
def set_direction(self, direction=(0, 0, -1))
Set direction
- → direction : a 3D tuple
str
def __str__(self)
To string translator