public class TexturedDiffuseShader extends DiffuseShader
Constructor and Description |
---|
TexturedDiffuseShader() |
Modifier and Type | Method and Description |
---|---|
Color |
getDiffuse(ShadingState state) |
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. |
boolean |
update(ParameterList pl,
SunflowAPI api)
Update this object given a list of parameters.
|
scatterPhoton
public boolean update(ParameterList pl, SunflowAPI api)
RenderObject
update
in interface RenderObject
update
in class DiffuseShader
pl
- list of parameters to read fromapi
- reference to the current scenetrue
if the update is succesfull,
false
otherwisepublic Color getDiffuse(ShadingState state)
getDiffuse
in class DiffuseShader
public Color getRadiance(ShadingState state)
Shader
getRadiance
in interface Shader
getRadiance
in class DiffuseShader
state
- current render statepublic boolean isOpaque()
Shader
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.isOpaque
in interface Shader
isOpaque
in class DiffuseShader
public Color getOpacity(ShadingState state)
Shader
getOpacity
in interface Shader
getOpacity
in class DiffuseShader