Cycles:
* Revert r57203 (len() renaming) There seems to be a problem with nVidia OpenCL after this and I haven't figured out the real cause yet. Better to selectively enable native length() later, after figuring out what's wrong. This fixes [#35612].
This commit is contained in:
@@ -25,7 +25,7 @@ __device float voronoi_distance(NodeDistanceMetric distance_metric, float3 d, fl
|
||||
if(distance_metric == NODE_VORONOI_DISTANCE_SQUARED)
|
||||
return dot(d, d);
|
||||
if(distance_metric == NODE_VORONOI_ACTUAL_DISTANCE)
|
||||
return length(d);
|
||||
return len(d);
|
||||
if(distance_metric == NODE_VORONOI_MANHATTAN)
|
||||
return fabsf(d.x) + fabsf(d.y) + fabsf(d.z);
|
||||
if(distance_metric == NODE_VORONOI_CHEBYCHEV)
|
||||
|
Reference in New Issue
Block a user