1. A method of ray tracing in an electronic image of a scene, comprising: segmenting the scene into a plurality of voxels; associating each of the voxels with a node of a bounding volume hierarchy (BVH) representing one or more object primitives within the scene; for a single ray in the ray tracing, determining a set of voxels through which the ray passes; determining a set of nodes associated with the set of voxels through which the single ray passes; determining a first deepest common ancestor node of the set of nodes; traversing the hierarchy starting at the first deepest common ancestor node to determine a point of intersection between the single ray and one of the one or more object primitives; and updating a digital image of the scene based on the determined point of intersection.