fixed ray mirror/trans shadow on rayobject_bvh

This commit is contained in:
2009-07-01 12:36:05 +00:00
parent 91226e6807
commit 1b557a61a5

View File

@@ -125,12 +125,12 @@ static int dfs_raycast(BVHNode *node, Isect *isec)
for(i=0; i<BVH_NCHILDS; i++)
if(RayObject_isAligned(node->child[i]))
{
hit = dfs_raycast(node->child[i], isec);
hit |= dfs_raycast(node->child[i], isec);
if(hit && isec->mode == RE_RAY_SHADOW) return hit;
}
else
{
hit = RE_rayobject_intersect( (RayObject*)node->child[i], isec);
hit |= RE_rayobject_intersect( (RayObject*)node->child[i], isec);
if(hit && isec->mode == RE_RAY_SHADOW) return hit;
}
}