28 const float r =
fmaxf(
x, 0.0f);
33 const float t = r * r;
35 return (3.0f * t - 2.0f * t * r);
38 return (
x +
y) * 0.5f;
SIMD_FORCE_INLINE const btScalar & z() const
Return the z value.
ccl_device_inline void stack_store_float(ccl_private float *stack, const uint a, const float f)
ccl_device_inline float3 stack_load_float3(const ccl_private float *stack, const uint a)
ccl_device_inline void stack_store_float3(ccl_private float *stack, const uint a, const float3 f)
ccl_device_inline bool stack_valid(const uint a)
#define ccl_device_noinline
#define CCL_NAMESPACE_END
CCL_NAMESPACE_BEGIN ccl_device float svm_gradient(const float3 p, NodeGradientType type)
ccl_device_noinline void svm_node_tex_gradient(ccl_private float *ccl_restrict stack, const ccl_global SVMNodeTexGradient &ccl_restrict node)
@ NODE_BLEND_QUADRATIC_SPHERE