|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sunflow.core.shader.AnisotropicWardShader
org.sunflow.core.shader.TexturedWardShader
public class TexturedWardShader
| Constructor Summary | |
|---|---|
TexturedWardShader()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.sunflow.core.shader.AnisotropicWardShader |
|---|
getRadiance, scatterPhoton |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TexturedWardShader()
| Method Detail |
|---|
public boolean update(ParameterList pl,
SunflowAPI api)
RenderObject
update in interface RenderObjectupdate in class AnisotropicWardShaderpl - list of parameters to read fromapi - reference to the current scene
true 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)
Shader
getOpacity in interface ShadergetOpacity in class AnisotropicWardShader
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||