Package org.sunflow.core.accel
Class NullAccelerator
- java.lang.Object
-
- org.sunflow.core.accel.NullAccelerator
-
- All Implemented Interfaces:
AccelerationStructure
public class NullAccelerator extends java.lang.Object implements AccelerationStructure
-
-
Field Summary
Fields Modifier and Type Field Description private int
n
private PrimitiveList
primitives
-
Constructor Summary
Constructors Constructor Description NullAccelerator()
-
Method Summary
All Methods Instance Methods Concrete Methods 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.
-
-
-
Field Detail
-
primitives
private PrimitiveList primitives
-
n
private int n
-
-
Method Detail
-
build
public void build(PrimitiveList primitives)
Description copied from interface:AccelerationStructure
Construct an acceleration structure for the specified primitive list.- Specified by:
build
in interfaceAccelerationStructure
-
intersect
public void intersect(Ray r, IntersectionState state)
Description copied from interface:AccelerationStructure
Intersect the specified ray with the geometry in local space. The ray will be provided in local space.- Specified by:
intersect
in interfaceAccelerationStructure
- Parameters:
r
- ray in local spacestate
- state to store the intersection into
-
-