Class BumpMappedMetal
java.lang.Object
org.autochthonous.graphics.rt.Shader
org.autochthonous.graphics.rt.shaders.CookTorranceShader
org.autochthonous.graphics.rt.shaders.ct.Metal
BumpMappedMetal
- 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">
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BumpMappedMetal
public BumpMappedMetal(World world,
Tile tile)
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