From e9ba345c46c93a193193f01d4bfac714a666d384 Mon Sep 17 00:00:00 2001 From: Stuart Broadfoot Date: Fri, 28 Dec 2012 14:21:30 +0000 Subject: New feature Patch [#33445] - Experimental Cycles Hair Rendering (CPU only) This patch allows hair data to be exported to cycles and introduces a new line segment primitive to render with. The UI appears under the particle tab and there is a new hair info node available. It is only available under the experimental feature set and for cpu rendering. --- intern/cycles/util/util_boundbox.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'intern/cycles/util/util_boundbox.h') diff --git a/intern/cycles/util/util_boundbox.h b/intern/cycles/util/util_boundbox.h index 6dd1c6c71e8..0c857f906ee 100644 --- a/intern/cycles/util/util_boundbox.h +++ b/intern/cycles/util/util_boundbox.h @@ -65,6 +65,13 @@ public: max = ccl::max(max, pt); } + __forceinline void grow(const float3& pt, float border) + { + float3 shift = {border, border, border, 0.0f}; + min = ccl::min(min, pt - shift); + max = ccl::max(max, pt + shift); + } + __forceinline void grow(const BoundBox& bbox) { grow(bbox.min); -- cgit v1.2.3