Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/smoke.c
| Context not available. | |||||
| // get starting cell (light pos) | // get starting cell (light pos) | ||||
| if (BLI_bvhtree_bb_raycast(bv, light, voxelCenter, pos) > FLT_EPSILON) | if (BLI_bvhtree_bb_raycast(bv, light, voxelCenter, pos) > FLT_EPSILON) | ||||
| { | { | ||||
| // we're ouside -> use point on side of domain | // we're outside -> use point on side of domain | ||||
| cell[0] = (int)floor(pos[0]); | cell[0] = (int)floor(pos[0]); | ||||
| cell[1] = (int)floor(pos[1]); | cell[1] = (int)floor(pos[1]); | ||||
| cell[2] = (int)floor(pos[2]); | cell[2] = (int)floor(pos[2]); | ||||
| Context not available. | |||||