|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmaterial.DielectricSPF
public class DielectricSPF
the dielectric scattering function
Constructor Summary | |
---|---|
DielectricSPF(IPainter tau,
IPainter ri,
IPainter s,
boolean hg)
constructor - Creates a scattering function |
Method Summary | |
---|---|
RGBColor |
getRayColor(IntersectionInfo intersection)
returns the color of the ray shaded with data from the intersection info |
double |
getReflectance(Vector3D toLight,
IntersectionInfo ri)
|
void |
scatter(IntersectionInfo ri,
ScatteredRayContainer scattered)
Creates a scattered ray and adds it to the ray-container |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DielectricSPF(IPainter tau, IPainter ri, IPainter s, boolean hg)
tau
- Transmittanceri
- Index of refractions
- Scattering function (either Phong or HG)hg
- Use Henyey-Greenstein phase function scatteringMethod Detail |
---|
public double getReflectance(Vector3D toLight, IntersectionInfo ri)
toLight
- vector to the light (normalized)ri
- information of the intersection
public void scatter(IntersectionInfo ri, ScatteredRayContainer scattered)
scatter
in interface ISPF
ri
- [in] intersection details for point of intersectionscattered
- [in/out] the container with the scattered rayspublic RGBColor getRayColor(IntersectionInfo intersection)
getRayColor
in interface ISPF
intersection
- [in] intersection details for point of intersection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |