Class DrawMeshes
java.lang.Object
com.marginallyclever.ro3.apps.viewport.renderpass.AbstractRenderPass
com.marginallyclever.ro3.apps.viewport.renderpass.DrawMeshes
- All Implemented Interfaces:
com.jogamp.opengl.GLEventListener,RenderPass,EventListener
Draw each
MeshInstance as a Mesh. If the MeshInstance has a sibling Material with
a Texture then use it in the ShaderProgram.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doublestatic final javax.vecmath.Matrix4dstatic final javax.vecmath.Matrix4dstatic final intstatic final intFields inherited from interface com.marginallyclever.ro3.apps.viewport.renderpass.RenderPass
ALWAYS, MAX_STATUS, NEVER, SOMETIMES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose(com.jogamp.opengl.GLAutoDrawable glAutoDrawable) voidDraw this viewport pass.voidinit(com.jogamp.opengl.GLAutoDrawable glAutoDrawable) static javax.vecmath.Matrix4dlookAt(javax.vecmath.Vector3d eye, javax.vecmath.Vector3d center, javax.vecmath.Vector3d up) Methods inherited from class com.marginallyclever.ro3.apps.viewport.renderpass.AbstractRenderPass
display, getActiveStatus, getName, reshape, setActiveStatus, setName
-
Field Details
-
SHADOW_WIDTH
public static final int SHADOW_WIDTH- See Also:
-
SHADOW_HEIGHT
public static final int SHADOW_HEIGHT- See Also:
-
DEPTH_BUFFER_LIMIT
public static final double DEPTH_BUFFER_LIMIT- See Also:
-
lightProjection
public static final javax.vecmath.Matrix4d lightProjection -
lightView
public static final javax.vecmath.Matrix4d lightView
-
-
Constructor Details
-
DrawMeshes
public DrawMeshes()
-
-
Method Details
-
init
public void init(com.jogamp.opengl.GLAutoDrawable glAutoDrawable) - Specified by:
initin interfacecom.jogamp.opengl.GLEventListener- Overrides:
initin classAbstractRenderPass
-
dispose
public void dispose(com.jogamp.opengl.GLAutoDrawable glAutoDrawable) - Specified by:
disposein interfacecom.jogamp.opengl.GLEventListener- Overrides:
disposein classAbstractRenderPass
-
draw
Description copied from interface:RenderPassDraw this viewport pass.- Specified by:
drawin interfaceRenderPass- Overrides:
drawin classAbstractRenderPass- Parameters:
viewport- the viewport to draw into
-
lookAt
public static javax.vecmath.Matrix4d lookAt(javax.vecmath.Vector3d eye, javax.vecmath.Vector3d center, javax.vecmath.Vector3d up)
-