|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sunflow.core.shader.AnisotropicWardShader
public class AnisotropicWardShader
Constructor Summary | |
---|---|
AnisotropicWardShader()
|
Method Summary | |
---|---|
protected Color |
getDiffuse(ShadingState state)
|
Color |
getOpacity(ShadingState state)
Returns how much light is blocked by this shader. |
Color |
getRadiance(ShadingState state)
Gets the radiance for a specified rendering state. |
boolean |
isOpaque()
Returns true if this shader is fully opaque. |
void |
scatterPhoton(ShadingState state,
Color power)
Scatter a photon with the specied power. |
boolean |
update(ParameterList pl,
SunflowAPI api)
Update this object given a list of parameters. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AnisotropicWardShader()
Method Detail |
---|
public boolean update(ParameterList pl, SunflowAPI api)
RenderObject
update
in interface RenderObject
pl
- list of parameters to read fromapi
- reference to the current scene
true
if the update is succesfull,
false
otherwiseprotected Color getDiffuse(ShadingState state)
public Color getRadiance(ShadingState state)
Shader
getRadiance
in interface Shader
state
- current render state
public void scatterPhoton(ShadingState state, Color power)
Shader
scatterPhoton
in interface Shader
state
- current statepower
- power of the incoming photon.public boolean isOpaque()
Shader
true
if this shader is fully opaque.
This gives a quick way to find out if a shader needs further processing
when hit by a shadow ray.
isOpaque
in interface Shader
public Color getOpacity(ShadingState state)
Shader
getOpacity
in interface Shader
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |