Cycles / Hair rendering:
* Enable hair rendering on the GPU. Patch by Stuart Broadfoot, with small tweaks by me, to only enable it on sm_20 and above.
This commit is contained in:
@@ -97,17 +97,6 @@ __device_inline float3 transform_direction_transposed(const Transform *t, const
|
||||
return make_float3(dot(x, a), dot(y, a), dot(z, a));
|
||||
}
|
||||
|
||||
#ifndef __KERNEL_GPU__
|
||||
|
||||
__device_inline void print_transform(const char *label, const Transform& t)
|
||||
{
|
||||
print_float4(label, t.x);
|
||||
print_float4(label, t.y);
|
||||
print_float4(label, t.z);
|
||||
print_float4(label, t.w);
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
__device_inline Transform transform_transpose(const Transform a)
|
||||
{
|
||||
Transform t;
|
||||
@@ -148,6 +137,17 @@ __device_inline Transform make_transform(float a, float b, float c, float d,
|
||||
return t;
|
||||
}
|
||||
|
||||
#ifndef __KERNEL_GPU__
|
||||
|
||||
__device_inline void print_transform(const char *label, const Transform& t)
|
||||
{
|
||||
print_float4(label, t.x);
|
||||
print_float4(label, t.y);
|
||||
print_float4(label, t.z);
|
||||
print_float4(label, t.w);
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
__device_inline Transform transform_translate(float3 t)
|
||||
{
|
||||
return make_transform(
|
||||
|
Reference in New Issue
Block a user