XJRT Rendering Toolkit 1.0b06

org.autochthonous.graphics.rt.shaders.ct
Class Matte

java.lang.Object
  extended byorg.autochthonous.graphics.rt.Shader
      extended byorg.autochthonous.graphics.rt.shaders.CookTorranceShader
          extended byorg.autochthonous.graphics.rt.shaders.ct.Matte
Direct Known Subclasses:
MatteTiled

public class Matte
extends CookTorranceShader

A matte surface shader.

Example:

      <Matte diffuse="0.9"/>
 

Document Type Definition:

     <!ENTITY %Float    "CDATA">
     <!ENTITY %Color3f  "CDATA">

     <!ELEMENT Matte>
     <!ATTLIST Matte
         ambient              (%Color3f; | %Float;) "0, 0, 0"
         diffuse              (%Color3f; | %Float;) "1, 1, 1">
 


Field Summary
protected  Color3f diffuse
           
 
Fields inherited from class org.autochthonous.graphics.rt.shaders.CookTorranceShader
ambient
 
Fields inherited from class org.autochthonous.graphics.rt.Shader
alpha, name, trans, world
 
Constructor Summary
Matte(World world)
           
 
Method Summary
static Shader getInstance(World world, RMLReader in)
           
protected  void processParameters(ParametersMap params)
          handle the parameters we want, passing the extras to our super class for processing.
 void setDiffuse(double kD)
          set the diffuse components for this object
 void setDiffuse(double r, double g, double b)
          set the diffuse components for this object
 void shade(Hit hit, Pixel p)
          the shade routine.
 
Methods inherited from class org.autochthonous.graphics.rt.shaders.CookTorranceShader
ambientContribution, diffuseContribution, setAmbient, setAmbient, specularContribution
 
Methods inherited from class org.autochthonous.graphics.rt.Shader
clamp, getName, processObject, readObject, setAlpha, toShaderSpace, toShaderSpace, transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

diffuse

protected Color3f diffuse
Constructor Detail

Matte

public Matte(World world)
Method Detail

getInstance

public static Shader getInstance(World world,
                                 RMLReader in)
                          throws java.io.IOException
Throws:
java.io.IOException

processParameters

protected void processParameters(ParametersMap params)
handle the parameters we want, passing the extras to our super class for processing.

Overrides:
processParameters in class CookTorranceShader

setDiffuse

public void setDiffuse(double kD)
set the diffuse components for this object


setDiffuse

public void setDiffuse(double r,
                       double g,
                       double b)
set the diffuse components for this object


shade

public void shade(Hit hit,
                  Pixel p)
Description copied from class: CookTorranceShader
the shade routine.

Specified by:
shade in class CookTorranceShader

XJRT Rendering Toolkit 1.0b06