material
Class DielectricMaterial
java.lang.Object
material.DielectricMaterial
- All Implemented Interfaces:
- IMaterial
public class DielectricMaterial
- extends java.lang.Object
- implements IMaterial
simulates an dielectric material with
a index of refraction (IOR)
a transmission color
a scattering function
- the Phong exponent (if hg==false)
- the Henvey-Greenstein parameter (if hg==true)
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DielectricMaterial
public DielectricMaterial(IPainter tau,
IPainter ri,
IPainter scat,
boolean hg)
- constructor - Creates a dielectric material
- Parameters:
tau
- Transmittanceri
- Index of refractionscat
- Scattering function (either Phong or HG)hg
- use Henyey-Greenstein phase function scattering
getBSDF
public IBSDF getBSDF()
- Specified by:
getBSDF
in interface IMaterial
- Returns:
- null since a dielectric material has no diffuse reflection
getSPF
public ISPF getSPF()
- Specified by:
getSPF
in interface IMaterial
- Returns:
- the scattering function
getEmitter
public IEmitter getEmitter()
- Specified by:
getEmitter
in interface IMaterial
- Returns:
- the emission properties for this material
null if there is not an emitter
getCopy
public IMaterial getCopy()
- Specified by:
getCopy
in interface IMaterial
- Returns:
- a copy of the material