org.sunflow.core.shader

Class NormalShader

Implemented Interfaces:
RenderObject, Shader

public class NormalShader
extends java.lang.Object
implements Shader

Method Summary

Color
getRadiance(ShadingState state)
void
scatterPhoton(ShadingState state, Color power)
boolean
update(ParameterList pl, SunflowAPI api)

Method Details

getRadiance

public Color getRadiance(ShadingState state)
Specified by:
getRadiance in interface Shader

scatterPhoton

public void scatterPhoton(ShadingState state,
                          Color power)
Specified by:
scatterPhoton in interface Shader

update

public boolean update(ParameterList pl,
                      SunflowAPI api)
Specified by:
update in interface RenderObject