Lighting
The current lighting facilities are limited and I'd like to see some enhancements that follows the OpenGL syntax.
Example code:
{
type = "lighting"
enabled = true
local_viewer = true
two_sided = true
ambient = {0.55, 00.85, 0.75, 1.0}
}
Description:
Used to set the reflective values from the material.
* enabled = boolean. Set to true to enable lighting.
* local_viewer = boolean. If true viewer will see reflections according to eye line.
* two_sided = boolean. If true uses back and front lighting, else front only.
* ambient = table with 4 numbers. Defines an RGBA color, with values ranging from 0 to 1.
Default states:
* enabled = true
* local_viewer = false
* two_sided = false
* ambient = {0.2, 0.2, 0.2, 1.0}
Could these elements be added to the properties of the light function?
|