shader
Class Shader

java.lang.Object
  extended by shader.Shader

public class Shader
extends java.lang.Object


Constructor Summary
Shader()
           
 
Method Summary
 void addShaderOp(IShaderOp shaderop)
          adds a shader operation
 void assignScene(Scene scene)
          assigns the scene to the shader
 void clear()
          Clears all shaderops
 void shade(IntersectionInfo intersection, RayState rs, RGBColor color)
          give the actual intersection point it's color
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Shader

public Shader()
Method Detail

addShaderOp

public void addShaderOp(IShaderOp shaderop)
adds a shader operation

Parameters:
shaderop -

clear

public void clear()
Clears all shaderops


shade

public void shade(IntersectionInfo intersection,
                  RayState rs,
                  RGBColor color)
give the actual intersection point it's color

Parameters:
intersection - intersection information
rs - state of the raytracer
color - [in/out]

assignScene

public void assignScene(Scene scene)
assigns the scene to the shader

Parameters:
scene -