light
List of: Scheme Data Types
Subjects: Lights and Shadows
Contents: Scheme Support

Description: A light is an entity used for rendering that represents a source of illumination cast on the model. Light types are ambient, distant, eye, point, or spot. Lights can cast shadows if shadow maps are generated. light objects are saved and restored as part of the model.

Derivation: integer : scheme-object

C++ Type: RH_LIGHT

External Rep: #[entity %d %d]

where the first integer is the entity ID, and the second integer is the part ID.

Example: ; light (data type)

; Create an inquire a light object.

(define my_light (light "ambient"))

;; my_light

(light? my_light)

;; #t
PDF/SCM/09SD.PDF
HTM/DATA/SCM/SCM/09SD/0039.HTM