|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sunflow.core.shader.AnisotropicWardShader
public class AnisotropicWardShader
| Constructor Summary | |
|---|---|
AnisotropicWardShader()
|
|
| Method Summary | |
|---|---|
protected 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. |
void |
scatterPhoton(ShadingState state,
Color power)
Scatter a photon with the specied power. |
boolean |
update(ParameterList pl,
SunflowAPI api)
Update this object given a list of parameters. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
state - current render state
public 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 PhongShaderpublic Color getOpacity(ShadingState state)
Shader
getOpacity in interface ShadergetOpacity in class PhongShader
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||