material
Class LambertianEmitter
java.lang.Object
material.LambertianEmitter
- All Implemented Interfaces:
- IEmitter
public class LambertianEmitter
- extends java.lang.Object
- implements IEmitter
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
radExPainter
public IPainter radExPainter
scale
public double scale
LambertianEmitter
public LambertianEmitter(IPainter radEx,
double scale)
- Parameters:
radEx
- the radiant painterscale
- equal to the energy
emittedRadiance
public RGBColor emittedRadiance(IntersectionInfo ri,
Vector3D out,
Vector3D N)
- Description copied from interface:
IEmitter
- Flux per solid angle per unit projected area (Watt/m^2sr).
- Specified by:
emittedRadiance
in interface IEmitter
- Parameters:
ri
- [in] intersection informationout
- [in] outgoing vector from the surface of the luminaryN
- [in] normal of the luminary
- Returns:
- the emitted radiance
computeDirectLighting
public void computeDirectLighting(IntersectionInfo intersection,
IObject lumObject,
RayState rs,
Raycaster raycaster,
IBSDF brdf,
int numSamples,
RGBColor amount)
- Specified by:
computeDirectLighting
in interface IEmitter
- Parameters:
intersection
- [in] info at the point of intersectionlumObject
- [in] the object, which has this emitting propertyrs
- [in] actual state of the rayraycaster
- [in] caster to send a ray to the lightbrdf
- [in] the Bidirectional Scattering/Reflection Distribution FunctionnumSamples
- [in] the number of rays to send to the lightamount
- [in/out] the color is added to this