|
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
a general purpose Cook-Torrance shader. Contains all the standard attributes.
Field Summary | |
protected Color3f |
ambient
|
Fields inherited from class org.autochthonous.graphics.rt.Shader |
alpha, name, trans, world |
Constructor Summary | |
CookTorranceShader(World world)
|
Method Summary | |
protected Color3f |
ambientContribution(World world)
return the ambient contribution of the given world to this surface. |
protected Color3f |
diffuseContribution(LightDataList contribs,
Hit hit)
return the diffuse contribution of the given world to this hit. |
protected void |
processParameters(ParametersMap params)
apply the default parameters for a shader, from the passed in parameters table. |
void |
setAmbient(Color3f c)
set the ambient color for this object (usually multiplied with the base color). |
void |
setAmbient(double r,
double g,
double b)
set the ambient color for this object (usually multiplied with the base color). |
abstract void |
shade(Hit hit,
Pixel p)
the shade routine. |
protected Color3f |
specularContribution(LightDataList contribs,
Hit hit,
float roughness)
return the specular contribution of the given world to this hit, calculated according to the given roughness. |
Methods inherited from class org.autochthonous.graphics.rt.Shader |
clamp, getName, processObject, 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 ambient
Constructor Detail |
public CookTorranceShader(World world)
Method Detail |
protected void processParameters(ParametersMap params)
processParameters
in class Shader
protected Color3f ambientContribution(World world)
protected Color3f diffuseContribution(LightDataList contribs, Hit hit)
protected Color3f specularContribution(LightDataList contribs, Hit hit, float roughness)
public void setAmbient(double r, double g, double b)
public void setAmbient(Color3f c)
public abstract void shade(Hit hit, Pixel p)
shade
in class Shader
|
XJRT Rendering Toolkit 1.0b06 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |