Methylene

Short Vector ? Operator

Discussion created by Methylene on Jun 2, 2009
Latest reply on Jun 2, 2009 by Ceq
The right way is?

I'm trying to get things set up for 1.4.0 and I'm getting the following error:

ERROR--1: : conditional expression must be a scalar data type.

    Statement: p > float3 (0.0f,0.0f,0.0f) in uCube1 = p > float3 (0.0f,0.0f,0.0f) ? (int3 ) p : (int3 ) p - int3 (1,1,1)
    Expression : p, Type : float3
    Expression : float3 (0.0f,0.0f,0.0f), Type : float3

What would be the proper way to do this now?

Outcomes