|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectraytracer.Raycaster
public class Raycaster
Constructor Summary | |
---|---|
Raycaster(Scene scene,
int maxrecursiondepth,
Shader shader,
double minI)
constructor |
Method Summary | |
---|---|
boolean |
castOptimizedShadowRay(Ray ray,
double howfar,
RGBColor color)
a version of castRay without shading, optimized |
boolean |
castRay(Ray ray,
RGBColor color,
RayState rs)
casts a ray in direction of ray, sets the color and intersection info |
boolean |
castShadowRay(Ray ray,
double howfar,
RGBColor color)
a version of castRay without shading |
Raycaster |
getCopy()
copies the raycaster |
int |
getRecursionDepth()
|
Scene |
getScene()
|
Shader |
getShader()
|
void |
setRecursionDepth(int depth)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Raycaster(Scene scene, int maxrecursiondepth, Shader shader, double minI)
scene
- maxrecursiondepth
- maximum recursion depthshader
- minI
- minimum importanceMethod Detail |
---|
public int getRecursionDepth()
public void setRecursionDepth(int depth)
depth
- the max recursion depthpublic Scene getScene()
public Shader getShader()
public boolean castRay(Ray ray, RGBColor color, RayState rs)
ray
- color
- rs
- state of the raytracer
public boolean castShadowRay(Ray ray, double howfar, RGBColor color)
ray
- howfar
- howfar to the light sourcecolor
-
public boolean castOptimizedShadowRay(Ray ray, double howfar, RGBColor color)
ray
- howfar
- howfar to the light sourcecolor
-
public Raycaster getCopy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |