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, scatterPhotonpublic boolean update(ParameterList pl, SunflowAPI api)
RenderObjectupdate in interface RenderObjectupdate in class AnisotropicWardShaderpl - 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 AnisotropicWardShaderpublic boolean isOpaque()
Shadertrue 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 ShaderisOpaque in class AnisotropicWardShaderpublic Color getOpacity(ShadingState state)
ShadergetOpacity in interface ShadergetOpacity in class AnisotropicWardShader