public class ViewIrradianceShader extends Object implements Shader
| Constructor and Description |
|---|
ViewIrradianceShader() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public boolean update(ParameterList pl, SunflowAPI api)
RenderObjectupdate in interface RenderObjectpl - list of parameters to read fromapi - reference to the current scenetrue if the update is succesfull,
false otherwisepublic Color getRadiance(ShadingState state)
ShadergetRadiance in interface Shaderstate - current render statepublic void scatterPhoton(ShadingState state, Color power)
ShaderscatterPhoton in interface Shaderstate - current statepower - power of the incoming photon.Copyright © 2017. All rights reserved.