org.bouncycastle.graphics.rt.shaders.ct
Class Metal
java.lang.Object
|
+--org.bouncycastle.graphics.rt.Shader
|
+--org.bouncycastle.graphics.rt.shaders.CookTorranceShader
|
+--org.bouncycastle.graphics.rt.shaders.ct.Metal
- public class Metal
- extends CookTorranceShader
a metal surface shader.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
maxLevel
protected int maxLevel
roughness
protected float roughness
reflectionRoughness
protected float reflectionRoughness
reflectingSurface
protected boolean reflectingSurface
reflectance
protected Color3f reflectance
specular
protected Color3f specular
Metal
public Metal(World world)
getInstance
public static Shader getInstance(World world,
RMLReader in)
throws java.io.IOException
processParameters
public void processParameters(ParametersMap params)
- process our parameter set, handing the extras back to the super class.
- Overrides:
processParameters
in class CookTorranceShader
setReflectance
public void setReflectance(double r,
double g,
double b)
- set the reflective component for this surface.
isReflecting
public boolean isReflecting()
- return whether, or not, the surface is reflecting.
setRoughFinishFactor
public void setRoughFinishFactor(double reflectionRoughness)
- set a roughness value to perturb the reflectance ray by. The value
must be between 0 and 1, with a value of 0 giving the sharpest
reflections.
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 CookTorranceShader