The POV Scene Language contains several statements called language directives which tell the file parser how to do its job. These directives can appear in almost any place in the scene file - even in the middle of some other statements. They are used to include other text files in the stream of commands, to declare identifiers, to define macros, conditional, or looped parsing and to control other important aspects of scene file processing.
Each directive begins with the hash character #
(often called a number sign or pound sign). It is followed by a keyword and optionally other parameters.
In versions of POV-Ray prior to 3.0, the use of this #
character was optional. Language directives could only be used between objects, camera or light_source statements and could not appear within those statements. The exception was the #include
which could appear anywhere. Now that all language directives can be used almost anywhere, the #
character is mandatory.
The following keywords introduce language directives.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Earlier versions of POV-Ray considered the keyword #max_intersections
and the keyword #max_trace_level
to be language directives but they have been moved to the global_settings
statement and should be placed there without the #
sign. Their use as a directive still works but it generates a warning and may be discontinued in the future.