org.xith3d.render.jsr231
Class ShadowMappingRenderPeer

java.lang.Object
  extended by org.xith3d.render.jsr231.ShadowMappingRenderPeer
All Implemented Interfaces:
ShadowRenderPeer.ShadowRenderPeerInterface

public class ShadowMappingRenderPeer
extends java.lang.Object
implements ShadowRenderPeer.ShadowRenderPeerInterface

Handles shadow-mapping.


Constructor Summary
ShadowMappingRenderPeer()
           
 
Method Summary
 int drawShadows(javax.media.opengl.GL gl, View view, Light light, RenderBin shadowBin, org.xith3d.render.jsr231.RenderPeerImpl renderPeer, long frameId)
           
 int initShadows(javax.media.opengl.GL gl, View view, Light light, RenderBin shadowBin, org.xith3d.render.jsr231.RenderPeerImpl renderPeer, long frameId)
          Draws the shadows into the shadow map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShadowMappingRenderPeer

public ShadowMappingRenderPeer()
Method Detail

initShadows

public final int initShadows(javax.media.opengl.GL gl,
                             View view,
                             Light light,
                             RenderBin shadowBin,
                             org.xith3d.render.jsr231.RenderPeerImpl renderPeer,
                             long frameId)
Draws the shadows into the shadow map.

Specified by:
initShadows in interface ShadowRenderPeer.ShadowRenderPeerInterface
Parameters:
gl -
view -
light -
shadowBin -
renderPeer -
frameId -

drawShadows

public final int drawShadows(javax.media.opengl.GL gl,
                             View view,
                             Light light,
                             RenderBin shadowBin,
                             org.xith3d.render.jsr231.RenderPeerImpl renderPeer,
                             long frameId)
Specified by:
drawShadows in interface ShadowRenderPeer.ShadowRenderPeerInterface