tracer
Class Material

java.lang.Object
  extended by tracer.Material

public class Material
extends java.lang.Object

Holds shading parameters.


Field Summary
 float ambient
           
 Vec3 color
           
 float diffuse
           
 int[] p
           
 Vec3 perlin
           
 Vec3[] perlinArray
           
 float reflectance
           
 Sampler2D sampler
           
 float specular
           
 float specularPower
           
 
Constructor Summary
Material()
           
 
Method Summary
 void parse(Parser p)
           
private  void setPerlinArrays()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

color

public Vec3 color

perlin

public Vec3 perlin

ambient

public float ambient

diffuse

public float diffuse

specular

public float specular

specularPower

public float specularPower

reflectance

public float reflectance

perlinArray

public Vec3[] perlinArray

p

public int[] p

sampler

public Sampler2D sampler
Constructor Detail

Material

public Material()
Method Detail

parse

public void parse(Parser p)
           throws java.io.IOException
Throws:
java.io.IOException

setPerlinArrays

private void setPerlinArrays()