shader
Class AreaLightShaderOp
java.lang.Object
shader.AreaLightShaderOp
- All Implemented Interfaces:
- IShaderOp
public class AreaLightShaderOp
- extends java.lang.Object
- implements IShaderOp
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AreaLightShaderOp
public AreaLightShaderOp(double width,
double height,
Point3D location,
Vector3D dir,
int samples,
IPainter emm,
double power,
IPainter N,
double hotSpot)
- constructor
- Parameters:
width
- width of the light sourceheight
- height of the light sourcelocation
- where is the light source locateddir
- what is the light source focussed onsamples
- number of samples to takeemm
- emission of this lightpower
- power scaleN
- Phong factor for focussing the light on somethinghotSpot
- angle in radians of the light's hot spot
performOperation
public void performOperation(IntersectionInfo ri,
RayState rs,
RGBColor c,
ScatteredRayContainer raycon,
Scene scene)
- Description copied from interface:
IShaderOp
- computes the color
- Specified by:
performOperation
in interface IShaderOp
- Parameters:
ri
- [in] intersection infors
- [in] actual state of the rayc
- [out] color of the intersectionraycon
- [in/out] the ray containerscene
- [in]
requireSPF
public boolean requireSPF()
- Description copied from interface:
IShaderOp
- does the shader op needs the SPF
- Specified by:
requireSPF
in interface IShaderOp
- Returns:
- true if it needs spf