|
|
On 11/6/18 5:19 PM, Cousin Ricky wrote:
>
> -------------- [BEGIN CODE] --------------
> #declare Object = sphere { 3 * z, 1 }
> sphere { Object pigment { red 1 } }
> --------------- [END CODE] ---------------
>
I'd say it works that way by design. How else would you use Object?
(I think the name Object is obfuscating.)
It is similar to
#declare MyTexture=texture{pigment{Red}};
sphere { 0, 1 texture {MyTexture}}
Maybe less confusing with a different name:
#declare MySphere = sphere {0, 1};
sphere {MySphere}
--
dik
Rendered 1024 of 921600 pixels (0%)
Post a reply to this message
|
|