org.osm2world.core.target.jogl
public class ShadowVolumeShader extends AbstractPrimitiveShader
JOGLRendererVBOShadowVolume
renderOnlySemiTransparent, renderSemiTransparent
fragmentShader, gl, shaderProgram, vertexShader
Constructor and Description |
---|
ShadowVolumeShader(GL3 gl) |
Modifier and Type | Method and Description |
---|---|
int |
getModelViewProjectionMatrixID() |
int |
getVertexBumpMapCoordID()
Returns the id to use by
JOGLRendererVBOShader to bind the vertex bumpmap coordinate attribute. |
int |
getVertexNormalID()
Returns the id to use by
JOGLRendererVBOShader to bind the vertex normal attribute. |
int |
getVertexPositionID()
Returns the id to use to bind the vertex position attribute.
|
int |
getVertexTangentID()
Returns the id to use by
JOGLRendererVBOShader to bind the vertex tangent attribute. |
int |
getVertexTexCoordID(int i)
Returns the id to use by
JOGLRendererVBOShader to bind the vertex texture coordinate attribute. |
void |
setPMVMatrix(PMVMatrix pmvMatrix)
Send uniform matrices "ProjectionMatrix, ModelViewMatrix and ModelViewProjectionMatrix" to vertex shader
|
glDisableVertexAttribArray, glEnableVertexAttribArray, glVertexAttribPointer, setMaterial, setRenderOnlySemiTransparent, setRenderSemiTransparent
disableShader, finalize, freeResources, getProgram, loadDefaults, useShader, validateShader
public void setPMVMatrix(PMVMatrix pmvMatrix)
pmvMatrix
- the PMVMatrix containing all matricespublic int getVertexPositionID()
getVertexPositionID
in class AbstractPrimitiveShader
public int getModelViewProjectionMatrixID()
public int getVertexNormalID()
AbstractPrimitiveShader
JOGLRendererVBOShader
to bind the vertex normal attribute.
May be -1 if the attribute is unused.getVertexNormalID
in class AbstractPrimitiveShader
public int getVertexTexCoordID(int i)
AbstractPrimitiveShader
JOGLRendererVBOShader
to bind the vertex texture coordinate attribute.
May be -1 if the attribute is unused.getVertexTexCoordID
in class AbstractPrimitiveShader
public int getVertexBumpMapCoordID()
AbstractPrimitiveShader
JOGLRendererVBOShader
to bind the vertex bumpmap coordinate attribute.
May be -1 if the attribute is unused.getVertexBumpMapCoordID
in class AbstractPrimitiveShader
public int getVertexTangentID()
AbstractPrimitiveShader
JOGLRendererVBOShader
to bind the vertex tangent attribute.
May be -1 if the attribute is unused.getVertexTangentID
in class AbstractPrimitiveShader