Light
Light
¶
Light(
direction: list = (1, 1, 1),
ambient_color: Color = (1, 0, 0, 0.2),
diffuse_color: Color = (1, 1, 1, 0.8),
specular_color: Color = (1, 1, 1, 0),
)
Light transform allows to modify faces color according to light parameters
Light transform allows to modify faces color according to light parameters
Parameters:
Name | Type | Description | Default |
---|---|---|---|
direction |
list
|
Direction of the light |
(1, 1, 1)
|
ambient_color |
Color
|
Ambient color, alpha component being strength |
(1, 0, 0, 0.2)
|
diffuse_color |
Color
|
Diffuse color, alpha component being strength |
(1, 1, 1, 0.8)
|
specular_color |
Color
|
Specular color, alpha component being shininess |
(1, 1, 1, 0)
|