public class TexturedWardShader extends AnisotropicWardShader
Constructor and Description |
---|
TexturedWardShader() |
Modifier and Type | Method and Description |
---|---|
Color |
getDiffuse(ShadingState state) |
Color |
getOpacity(ShadingState state)
Returns how much light is blocked by this shader.
|
boolean |
isOpaque()
Returns
true if this shader is fully opaque. |
boolean |
update(ParameterList pl,
SunflowAPI api)
Update this object given a list of parameters.
|
getRadiance, scatterPhoton
public boolean update(ParameterList pl, SunflowAPI api)
RenderObject
update
in interface RenderObject
update
in class AnisotropicWardShader
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 AnisotropicWardShader
public 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 AnisotropicWardShader
public Color getOpacity(ShadingState state)
Shader
getOpacity
in interface Shader
getOpacity
in class AnisotropicWardShader