|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sunflow.core.shader.DiffuseShader
public class DiffuseShader
| Constructor Summary | |
|---|---|
DiffuseShader()
|
|
| Method Summary | |
|---|---|
Color |
getDiffuse(ShadingState state)
|
Color |
getRadiance(ShadingState state)
Gets the radiance for a specified rendering state. |
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 DiffuseShader()
| Method Detail |
|---|
public boolean update(ParameterList pl,
SunflowAPI api)
RenderObject
update in interface RenderObjectpl - list of parameters to read fromapi - reference to the current scene
true if the update is succesfull,
false otherwisepublic Color getDiffuse(ShadingState state)
public Color getRadiance(ShadingState state)
Shader
getRadiance in interface Shaderstate - current render state
public void scatterPhoton(ShadingState state,
Color power)
Shader
scatterPhoton in interface Shaderstate - current statepower - power of the incoming photon.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||