public class TexturedShinyDiffuseShader extends ShinyDiffuseShader
| Constructor and Description |
|---|
TexturedShinyDiffuseShader() |
| 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.
|
getShininess, scatterPhotonpublic boolean update(ParameterList pl, SunflowAPI api)
RenderObjectupdate in interface RenderObjectupdate in class ShinyDiffuseShaderpl - 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 ShinyDiffuseShaderpublic Color getRadiance(ShadingState state)
ShadergetRadiance in interface ShadergetRadiance in class ShinyDiffuseShaderstate - current render statepublic 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 ShinyDiffuseShaderpublic Color getOpacity(ShadingState state)
ShadergetOpacity in interface ShadergetOpacity in class ShinyDiffuseShader