org.metasyntactic.graphics.models
Class DiffuseModel

java.lang.Object
  |
  +--org.metasyntactic.graphics.models.LocalShadeModel
        |
        +--org.metasyntactic.graphics.models.DiffuseModel
All Implemented Interfaces:
ShadeModel

public class DiffuseModel
extends LocalShadeModel


Field Summary
static DiffuseModel DIFFUSE_MODEL
           
 
Constructor Summary
DiffuseModel()
           
 
Method Summary
 Color computeShade(Intersection intersection, Vector view, Scene scene)
          Creates a new instance of DiffuseModel
static ShadeModel fromXML(org.w3c.dom.Element element)
           
 java.lang.String toXML()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DIFFUSE_MODEL

public static final DiffuseModel DIFFUSE_MODEL
Constructor Detail

DiffuseModel

public DiffuseModel()
Method Detail

computeShade

public Color computeShade(Intersection intersection,
                          Vector view,
                          Scene scene)
Creates a new instance of DiffuseModel


toXML

public java.lang.String toXML()

fromXML

public static ShadeModel fromXML(org.w3c.dom.Element element)