|
|
Mike Horvath <mik### [at] gmailcom> wrote:
> Does `#version 3.7` have to appear at the very top of a scene file? Or
> can I store it as a variable or use it in a condition first? E.g.
>
>
> #declare MyVersion = version;
> #if (something = true)
> #version 3.7
> #else
> #version 3.6
> #end
Both.
POV-Ray expects to fins a #version directive (and a global settings block with
gamma) at the beginning of every file, and will issue a warning is those are not
present.
You can, however, then go on to change the version the parser uses to interpret
your code by issuing another #version directive.
IIRC, this is done with some include files or macros, where the current version
is stored like you do above, and then after that block of code is run, the
version is restored by
#version MyVersion
Hope that makes sense.
Post a reply to this message
|
|