Package rendering.raytracing
Class RayTracer
java.lang.Object
rendering.raytracing.RayTracer
- Direct Known Subclasses:
PhongRayTracer
public abstract class RayTracer
extends java.lang.Object
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
scene
The scene to trace each ray in.
-
-
Constructor Details
-
RayTracer
- Parameters:
scene
- TheScene
to trace.
-
-
Method Details
-
trace
Trace the given ray to calculate theColour
that ray results in.- Parameters:
ray
- The ray to trace in the scene.- Returns:
- The
Colour
resulting from the trace of the ray.
-
trace
Trace the given rays to calculate the averageColour
the rays result in.- Parameters:
rays
- The rays to trace in the scene.- Returns:
- The
Colour
resulting from the trace of the ray.
-