|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Shader
A shader represents a particular light-surface interaction.
Method Summary | |
---|---|
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. |
Methods inherited from interface org.sunflow.core.RenderObject |
---|
update |
Method Detail |
---|
Color getRadiance(ShadingState state)
state
- current render state
void scatterPhoton(ShadingState state, Color power)
state
- current statepower
- power of the incoming photon.boolean isOpaque()
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.
Color getOpacity(ShadingState state)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |