Skip to content

Commit

Permalink
Update cuda_pathtracer.cu
Browse files Browse the repository at this point in the history
  • Loading branch information
straaljager committed Jan 26, 2016
1 parent 60f75fb commit a5f562c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cuda_pathtracer.cu
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,10 @@ __device__ bool BVH_IntersectTriangles(
// start from infinity
bestTriDist = FLT_MAX;

// create a stack for each ray
// the stack is just a fixed size array of indices to BVH nodes
int stack[BVH_STACK_SIZE];

int stackIdx = 0;
stack[stackIdx++] = 0;
Vector3Df hitpoint;
Expand Down

0 comments on commit a5f562c

Please sign in to comment.