|
|
On 2021-09-30 1:03 PM (-4), B. Gimeno wrote:
>
> "All built-in vector identifiers never change value. They are defined as though
> the following lines were at the start of every scene.
>
> #declare x = <1, 0, 0>;
> #declare y = <0, 1, 0>;
> #declare z = <0, 0, 1>;
> #declare t = <0, 0, 0, 1>;
> #declare u = <1, 0>;
> #declare v = <0, 1>;
This does not apply in the context of function parameters. Function
parameters are not vector constants, but variable scalars.
In the foo3 example in particular, you can see that the pre-declared
value of x is not used: 0 does not equal <1, 0, 0>.
Post a reply to this message
|
|