diff options
Diffstat (limited to 'src/alpha.h')
-rw-r--r-- | src/alpha.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/alpha.h b/src/alpha.h index a9963eb..e4a3a40 100644 --- a/src/alpha.h +++ b/src/alpha.h @@ -57,7 +57,7 @@ __device__ int get_color_alpha(const float3 &origin, const float3& direction) float distance; - if (!intersect_node(origin, direction, g_start_node)) + if (!intersect_node(origin, direction, g_start_node, -1.0f)) return 0; unsigned int stack[STACK_SIZE]; @@ -85,7 +85,7 @@ __device__ int get_color_alpha(const float3 &origin, const float3& direction) { for (i=first_child; i < stop; i++) { - if (intersect_node(origin, direction, i)) + if (intersect_node(origin, direction, i, -1.0f)) { *node = i; node++; |