This section defines the lamps ( or light sources ) in the scene.
section_lamp = { . lamp . name . name_lamp . model . { . deflamp . } . }
name_lamp = ident
deflamp = [ deflamp_point | deflamp_cone ]
deflamp_point = pointlamp . { [ defpoint_pos | defpoint_color ] }
defpoint_pos = pos . point . ;
defpoint_color = color . color . ;
deflamp_cone = conelamp . { [ defcone_pos | defcone_ang | defcone_dir | defcone_color ] }
defcone_pos = pos . point . ;
defcone_ang = ang . number_real . ;
defcone_dir = dir . number_real . ;
defcone_color = color . color . ;
name_lamp
name of the lamp. It must be unique.
deflamp_point
definition of a uniform type lamp.
defpoint_pos
definition of the lamp position.
defpoint_color
definition of the lamp color.
deflamp_cone
definition of cone lamp.
defcone_pos
vertex of cone lamp.
defcone_ang
opening angle.
defcone_dir
direction of cone lamp.
defcone_color
definition of the color lamp.