Class DualDepthPeelingAlgorithm
- java.lang.Object
-
- org.jzy3d.plot3d.rendering.ddp.AbstractDepthPeelingAlgorithm
-
- org.jzy3d.plot3d.rendering.ddp.algorithms.DualDepthPeelingAlgorithm
-
- All Implemented Interfaces:
IDepthPeelingAlgorithm,IShaderable
public class DualDepthPeelingAlgorithm extends AbstractDepthPeelingAlgorithm implements IDepthPeelingAlgorithm
-
-
Field Summary
Fields Modifier and Type Field Description int[]g_dualBackBlenderFboIdint[]g_dualBackBlenderTexIdint[]g_dualBackTempTexIdint[]g_dualDepthTexIdint[]g_dualFrontBlenderTexIdint[]g_dualPeelingSingleFboIdGLSLProgramglslBlendGLSLProgramglslFinalGLSLProgramglslInitGLSLProgramglslPeelprotected ShaderFilePairshaderBaseprotected ShaderFilePairshaderBlendprotected ShaderFilePairshaderFinalprotected ShaderFilePairshaderInitprotected ShaderFilePairshaderPeel-
Fields inherited from class org.jzy3d.plot3d.rendering.ddp.AbstractDepthPeelingAlgorithm
g_backgroundColor, g_black, g_drawBuffers, g_numGeoPasses, g_numPasses, g_opacity, g_quadDisplayList, g_queryId, g_useOQ, g_white, MAX_DEPTH
-
-
Constructor Summary
Constructors Constructor Description DualDepthPeelingAlgorithm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidbuildShaders(com.jogamp.opengl.GL2 gl)protected voiddeleteDualPeelingRenderTargets(com.jogamp.opengl.GL2 gl)protected voiddestroyShaders(com.jogamp.opengl.GL2 gl)voiddisplay(IPainter painter, com.jogamp.opengl.GL2 gl, com.jogamp.opengl.glu.GLU glu)voidinit(IPainter painter, com.jogamp.opengl.GL2 gl, int width, int height)protected voidinitDualPeelingRenderTargets(com.jogamp.opengl.GL2 gl, int g_imageWidth, int g_imageHeight)protected voidrenderDualPeeling(IPainter painter, com.jogamp.opengl.GL2 gl)voidreshape(IPainter painter, com.jogamp.opengl.GL2 gl, int width, int height)-
Methods inherited from class org.jzy3d.plot3d.rendering.ddp.AbstractDepthPeelingAlgorithm
buildFinish, buildFullScreenQuad, dispose, getTasksToRender, incrementGeoPasses, reloadShaders, resetNumPass, setTasksToRender, shader, tasksToRender
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jzy3d.plot3d.rendering.shaders.IShaderable
dispose, getTasksToRender, setTasksToRender
-
-
-
-
Field Detail
-
g_dualBackBlenderFboId
public int[] g_dualBackBlenderFboId
-
g_dualPeelingSingleFboId
public int[] g_dualPeelingSingleFboId
-
g_dualDepthTexId
public int[] g_dualDepthTexId
-
g_dualFrontBlenderTexId
public int[] g_dualFrontBlenderTexId
-
g_dualBackTempTexId
public int[] g_dualBackTempTexId
-
g_dualBackBlenderTexId
public int[] g_dualBackBlenderTexId
-
glslInit
public GLSLProgram glslInit
-
glslPeel
public GLSLProgram glslPeel
-
glslBlend
public GLSLProgram glslBlend
-
glslFinal
public GLSLProgram glslFinal
-
shaderBase
protected ShaderFilePair shaderBase
-
shaderInit
protected ShaderFilePair shaderInit
-
shaderPeel
protected ShaderFilePair shaderPeel
-
shaderBlend
protected ShaderFilePair shaderBlend
-
shaderFinal
protected ShaderFilePair shaderFinal
-
-
Method Detail
-
init
public void init(IPainter painter, com.jogamp.opengl.GL2 gl, int width, int height)
- Specified by:
initin interfaceIShaderable
-
display
public void display(IPainter painter, com.jogamp.opengl.GL2 gl, com.jogamp.opengl.glu.GLU glu)
- Specified by:
displayin interfaceIShaderable
-
reshape
public void reshape(IPainter painter, com.jogamp.opengl.GL2 gl, int width, int height)
- Specified by:
reshapein interfaceIShaderable
-
buildShaders
protected void buildShaders(com.jogamp.opengl.GL2 gl)
- Specified by:
buildShadersin classAbstractDepthPeelingAlgorithm
-
destroyShaders
protected void destroyShaders(com.jogamp.opengl.GL2 gl)
- Specified by:
destroyShadersin classAbstractDepthPeelingAlgorithm
-
initDualPeelingRenderTargets
protected void initDualPeelingRenderTargets(com.jogamp.opengl.GL2 gl, int g_imageWidth, int g_imageHeight)
-
deleteDualPeelingRenderTargets
protected void deleteDualPeelingRenderTargets(com.jogamp.opengl.GL2 gl)
-
renderDualPeeling
protected void renderDualPeeling(IPainter painter, com.jogamp.opengl.GL2 gl)
-
-