Bouncy Castle Rendering Toolkit 1.0

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

java.lang.Object
  |
  +--org.bouncycastle.graphics.rt.Shader
        |
        +--org.bouncycastle.graphics.rt.shaders.CookTorranceShader
              |
              +--org.bouncycastle.graphics.rt.shaders.ct.Matte

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.bouncycastle.graphics.rt.shaders.CookTorranceShader
ambient
 
Fields inherited from class org.bouncycastle.graphics.rt.Shader
alpha, 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.bouncycastle.graphics.rt.shaders.CookTorranceShader
ambientContribution, diffuseContribution, setAmbient, setAmbient, specularContribution
 
Methods inherited from class org.bouncycastle.graphics.rt.Shader
clamp, 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

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.
Overrides:
shade in class CookTorranceShader

Bouncy Castle Rendering Toolkit 1.0