Thread: Lighting
View Single Post
Old 12th March 2010, 05:24 AM   #1
Mossie
Senior Member
Professional user
 
Mossie's Avatar
 
Join Date: Dec 2003
Location: UK
Posts: 369
Default 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?
__________________
Regards, Gerry "Mossie" Mos
--------------------------------------------------------------------------
WW1 Aircraft Library
http://ww1-aircraft.info/

Mossie 3D CAD, "Prompt and Precise"
http://mossie3dcad.com/
Mossie is offline   Reply With Quote