Package rendering.raytracing
Class PhongRayTracer
java.lang.Object
rendering.raytracing.RayTracer
rendering.raytracing.PhongRayTracer
public class PhongRayTracer extends RayTracer
This RayTracer implements the Phong model.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description PhongRayTracer(Scene scene, int maxRecursionLevel, double minEffectCoefficient)
Construct a new PhongRayTracer for the given scene. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
PhongRayTracer
Construct a new PhongRayTracer for the given scene.- Parameters:
scene
- The scene to trace.maxRecursionLevel
- The maximum number of times to trace reflections and refractions.minEffectCoefficient
- The minimum coefficient to consider calculating.
-
-
Method Details