|
XJRT Rendering Toolkit 1.0b06 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.autochthonous.graphics.rt.Shader
org.autochthonous.graphics.rt.shaders.CookTorranceShader
org.autochthonous.graphics.rt.shaders.ct.Matte
MatteTiled
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 |
public MatteTiled(World world, Tile tile)
Method Detail |
public static Shader getInstance(World world, RMLReader in) throws java.io.IOException
java.io.IOException
protected void processObject(java.lang.Object obj)
Shader
processObject
in class Shader
protected void processParameters(ParametersMap params)
processParameters
in class Matte
public void setBlend(float blend)
public void setRotation(float angle)
public void setScale(float sScale, float tScale)
public void shade(Hit hit, Pixel p)
shade
in class Matte
|
XJRT Rendering Toolkit 1.0b06 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |