|
||||||||||
| 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 |
getRadiance(ShadingState state)
Gets the radiance for a specified rendering state. |
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||