apps.lightrays.raytracer.shaders
Class PlaneShader

java.lang.Object
  extended by apps.lightrays.raytracer.shaders.Shader
      extended by apps.lightrays.raytracer.shaders.PhongShader
          extended by apps.lightrays.raytracer.shaders.PlaneShader

public class PlaneShader
extends PhongShader

The Class PlaneShader.


Constructor Summary
PlaneShader(Scene scene, Ray incident_ray, RayHitInfo hit, Plane obj)
          Instantiates a new plane shader.
 
Method Summary
 void getColour(Colour c)
          Gets the colour.
 
Methods inherited from class apps.lightrays.raytracer.shaders.PhongShader
reflect, refract
 
Methods inherited from class apps.lightrays.raytracer.shaders.Shader
getDepth, getIncident_ray, getOptical_properties, setDepth, setIncident_ray, setOptical_properties
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlaneShader

public PlaneShader(Scene scene,
                   Ray incident_ray,
                   RayHitInfo hit,
                   Plane obj)
Instantiates a new plane shader.

Parameters:
scene - the scene
incident_ray - the incident_ray
hit - the hit
obj - the obj
Method Detail

getColour

public void getColour(Colour c)
Description copied from class: Shader
Gets the colour.

Overrides:
getColour in class PhongShader
Parameters:
c - the c