org.sunflow.core.shader
Class AnisotropicWardShader

java.lang.Object
  extended by org.sunflow.core.shader.AnisotropicWardShader
All Implemented Interfaces:
RenderObject, Shader
Direct Known Subclasses:
TexturedWardShader

public class AnisotropicWardShader
extends java.lang.Object
implements Shader


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

AnisotropicWardShader in class/shader/PhongShader.html" title="class in org.sunflow.core.shader">PhongShader
Parameters:
state - current render state
Returns:
color emitted or reflected by the shader

isOpaque

public boolean isOpaque()
Description copied from interface: Shader
Returns 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.

Specified by:
isOpaque in interface Shader
Overrides:
isOpaque in class PhongShader

getOpacity

public Color getOpacity(ShadingState state)
Description copied from interface: Shader
Returns how much light is blocked by this shader.

Specified by:
getOpacity in interface Shader
Overrides:
getOpacity in class PhongShader


./usr/share/doc/libsunflow-java-doc/api/org/sunflow/core/shader/AnisotropicWardShader.html0000644000000000000000000004636311717242136030637 0ustar rootroot AnisotropicWardShader