AccelerationStructurepublic final class UniformGrid extends java.lang.Object implements AccelerationStructure
| Constructor | Description |
|---|---|
UniformGrid() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
build(PrimitiveList primitives) |
Construct an acceleration structure for the specified primitive list.
|
void |
intersect(Ray r,
IntersectionState state) |
Intersect the specified ray with the geometry in local space.
|
public void build(PrimitiveList primitives)
AccelerationStructurebuild in interface AccelerationStructurepublic void intersect(Ray r, IntersectionState state)
AccelerationStructureintersect in interface AccelerationStructurer - ray in local spacestate - state to store the intersection into