|
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.Plastic
org.autochthonous.graphics.rt.shaders.ct.TurbulenceShader
a general shader with turbulence support
Field Summary | |
protected Color3f |
base
|
protected float |
blend
|
protected Color3f |
blendColor
|
protected ColorMap |
colorMap
|
protected NoiseGenerator |
generator
|
protected int |
octaves
|
protected float |
percentageTurbulence
|
protected float |
squeeze
|
Fields inherited from class org.autochthonous.graphics.rt.shaders.ct.Plastic |
diffuse, maxLevel, reflectance, reflectingSurface, reflectionRoughness, refractiveIndex, roughness, specular, transparency, transparentSurface |
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 | |
TurbulenceShader(World world)
|
Method Summary | |
protected void |
processObject(java.lang.Object obj)
process the object passed in if we can use it, or pass it up to our super class. |
protected void |
processParameters(ParametersMap params)
process the parameters we want before handing them to our super class. |
void |
setBlendColor(Color3f blendColor)
set the percentage of turbulence to incorporate |
void |
setPercentageTurbulence(float percentage)
set the percentage of turbulence to incorporate |
void |
setSqueeze(float squeeze)
set the squeeze on the texture lines |
abstract void |
shade(Hit hit,
Pixel p)
the shade routine. |
protected float |
turbulence(Tuple3f pos,
int octaves)
Accumulate a 3D noise function over octaves octaves, scaling each by 1 / f |
Methods inherited from class org.autochthonous.graphics.rt.shaders.ct.Plastic |
getInstance, isReflecting, isSpecular, isTransparent, setDiffuse, setDiffuse, setDiffuse, setReflectance, setReflectance, setReflectionRoughness, setRefractiveIndex, setRoughness, setSpecular, setTransparency, setTransparency |
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 |
Field Detail |
protected Color3f base
protected Color3f blendColor
protected ColorMap colorMap
protected float blend
protected float squeeze
protected float percentageTurbulence
protected int octaves
protected NoiseGenerator generator
Constructor Detail |
public TurbulenceShader(World world)
Method Detail |
protected void processParameters(ParametersMap params)
processParameters
in class Plastic
protected void processObject(java.lang.Object obj)
processObject
in class Shader
public void setPercentageTurbulence(float percentage)
public void setSqueeze(float squeeze)
public void setBlendColor(Color3f blendColor)
protected float turbulence(Tuple3f pos, int octaves)
public abstract void shade(Hit hit, Pixel p)
Plastic
shade
in class Plastic
|
XJRT Rendering Toolkit 1.0b06 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |