public class MirrorShader extends Object implements Shader
Constructor and Description |
---|
MirrorShader() |
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)
RenderObject
update
in interface RenderObject
pl
- list of parameters to read fromapi
- reference to the current scenetrue
if the update is succesfull,
false
otherwisepublic Color getRadiance(ShadingState state)
Shader
getRadiance
in interface Shader
state
- current render statepublic void scatterPhoton(ShadingState state, Color power)
Shader
scatterPhoton
in interface Shader
state
- current statepower
- power of the incoming photon.Copyright © 2019. All rights reserved.