shader
Class DirectLightingShaderOp

java.lang.Object
  extended by shader.DirectLightingShaderOp
All Implemented Interfaces:
IShaderOp

public class DirectLightingShaderOp
extends java.lang.Object
implements IShaderOp


Constructor Summary
DirectLightingShaderOp()
           
 
Method Summary
 void performOperation(IntersectionInfo intersection, RayState rs, RGBColor color, ScatteredRayContainer raycon, Scene scene)
          computes the color
 boolean requireSPF()
          does the shader op needs the SPF
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectLightingShaderOp

public DirectLightingShaderOp()
Method Detail

performOperation

public void performOperation(IntersectionInfo intersection,
                             RayState rs,
                             RGBColor color,
                             ScatteredRayContainer raycon,
                             Scene scene)
Description copied from interface: IShaderOp
computes the color

Specified by:
performOperation in interface IShaderOp
Parameters:
intersection - [in] intersection info
rs - [in] actual state of the ray
color - [out] color of the intersection
raycon - [in/out] the ray container
scene - [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