Class RayXY
java.lang.Object
com.marginallyclever.ro3.apps.pathtracer.RayXY
RayXY is used to track the average color of each pixel as the PathTracer runs.-
Field Summary
FieldsModifier and TypeFieldDescriptiondoublejavax.vecmath.Vector3dfinal ColorDoublefinal ColorDoubleintintint -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(ColorDouble traceResult, double exposure, boolean activateToneMap) Add the results of a path trace to this pixel and recalculate the tone mapped average.voidaddRayHistory(Ray ray, Hit hit) int
-
Field Details
-
x
public int x -
y
public int y -
samples
public int samples -
radianceSum
-
radianceAverage
-
depth
public double depth -
normal
public javax.vecmath.Vector3d normal -
rayHistory
-
halton
-
-
Constructor Details
-
RayXY
public RayXY(int x, int y) -
RayXY
public RayXY(int x, int y, int traceDepth)
-
-
Method Details
-
addRayHistory
-
add
Add the results of a path trace to this pixel and recalculate the tone mapped average.- Parameters:
traceResult- the result of the path trace.
-
getSamples
public int getSamples()
-