XJRT Rendering Toolkit 1.0b06

Class BumpMappedMetal

java.lang.Object
  extended byorg.autochthonous.graphics.rt.Shader
      extended byorg.autochthonous.graphics.rt.shaders.CookTorranceShader
          extended byorg.autochthonous.graphics.rt.shaders.ct.Metal
              extended byBumpMappedMetal

public class BumpMappedMetal
extends Metal

A tiling bump map shader.

Example:

      <BumpMappedMetal diffuse="0.9" specular="0.1">
         <Tile image="tile.pix" repeating="true">
      </BumpMappedMetal>
 

Document Type Definition:

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

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


Field Summary
 
Fields inherited from class org.autochthonous.graphics.rt.shaders.ct.Metal
maxLevel, reflectance, reflectingSurface, reflectionRoughness, roughness, specular
 
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
BumpMappedMetal(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 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.Metal
isReflecting, setReflectance, setRoughFinishFactor
 
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

BumpMappedMetal

public BumpMappedMetal(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 Metal

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 Metal

XJRT Rendering Toolkit 1.0b06