|
|
Le 28/09/2018 à 01:40, Mike Horvath a écrit :
> It would be nice to be able to set vector components like this:
>
> #local tPrjB1.z = max(min(tPrjB1.z,1),-1);
>
> Are there any plans to do this in the future?
>
>
>
> Mike
you could use the following:
#local P = <p.x, P.y, max(min(P.z),1),-1)>;
Make that a set of macro, and voila.
#macro BoundZ( V )
<V.x, V.y, max(min(V.z),1),-1) >
#end
#local P = BoundZ(P);
Post a reply to this message
|
|