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">
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
diffuse
protected Color3f diffuse
Matte
public Matte(World world)
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