I am trying to make a function which uses a vector cordnate return a value.
Within this the I am trying to pull the y component of the input to do a
compareson on it. I have tried with both #if and #switch and have the same
problem.
#declare MyFn = function {
#switch ( y )
#case ( 1 )
// funcion code 1
#break // 1
#case ...
#end // switch
}
Parse Error: Float expected but vector or color expression found.
Is there a vector function I can use to get they y component, MyFn.y, <y> or
such?
-=<{()}>=-
Thorcane
-=<{()}>=-
Post a reply to this message
|