XJRT Rendering Toolkit 1.0b06

Class MatteTiled

java.lang.Object
  extended byorg.autochthonous.graphics.rt.Shader
      extended byorg.autochthonous.graphics.rt.shaders.CookTorranceShader
          extended byorg.autochthonous.graphics.rt.shaders.ct.Matte
              extended byMatteTiled

public class MatteTiled
extends Matte

A matte surface shader with tiling.

Example:

      <Matte diffuse="0.9" blend="1.0"/>
         <Tile image="tile.pix" repeating="true">
      <MatteTiled>
 

Document Type Definition:

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

     <!ELEMENT MatteTiled (Tile)>
     <!ATTLIST MatteTiled
         ambient              (%Color3f; | %Float;) "0, 0, 0"
         diffuse              (%Color3f; | %Float;) "1, 1, 1"
         rotate               %Float; "0"
         scale                %Vector2f; "1, 1">
 


Field Summary
 
Fields inherited from class org.autochthonous.graphics.rt.shaders.ct.Matte
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
MatteTiled(World world, Tile tile)
           
 
Method Summary
static Shader getInstance(World world, RMLReader in)
           
protected  void processObject(java.lang.Object obj)
          apply default handling to the given object as part of shader construction.
protected  void processParameters(ParametersMap params)
          handle the parameters we want, passing the extras to our super class for processing.
 void setBlend(float blend)
          set the blend factor for the tiling.
 void setRotation(float angle)
          set a rotation in degrees (around "u") for this tiling.
 void setScale(float sScale, float tScale)
          set the (s, t) scaling for this tiling.
 void shade(Hit hit, Pixel p)
          the shade routine.
 
Methods inherited from class org.autochthonous.graphics.rt.shaders.ct.Matte
setDiffuse, setDiffuse
 
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, readObject, setAlpha, toShaderSpace, toShaderSpace, transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MatteTiled

public MatteTiled(World world,
                  Tile tile)
Method Detail

getInstance

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

processObject

protected void processObject(java.lang.Object obj)
Description copied from class: Shader
apply default handling to the given object as part of shader construction.

Overrides:
processObject in class Shader

processParameters

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

Overrides:
processParameters in class Matte

setBlend

public void setBlend(float blend)
set the blend factor for the tiling.


setRotation

public void setRotation(float angle)
set a rotation in degrees (around "u") for this tiling.


setScale

public void setScale(float sScale,
                     float tScale)
set the (s, t) scaling for this tiling.


shade

public void shade(Hit hit,
                  Pixel p)
the shade routine. If you want more than the below, this is the method to override.

Overrides:
shade in class Matte

XJRT Rendering Toolkit 1.0b06