Omaha #5146 Enable blending for triangulated images.
Former-commit-id: 9d74981da736149856c3b353f0a6fa2a176d4696
This commit is contained in:
parent
232ee4c664
commit
e784361a08
1 changed files with 5 additions and 0 deletions
|
@ -203,6 +203,9 @@ public class GLTriangulatedImage implements ITriangulatedImage {
|
||||||
gl.glPolygonMode(GL.GL_BACK, GL.GL_FILL);
|
gl.glPolygonMode(GL.GL_BACK, GL.GL_FILL);
|
||||||
gl.glPolygonMode(GL.GL_FRONT, GL.GL_FILL);
|
gl.glPolygonMode(GL.GL_FRONT, GL.GL_FILL);
|
||||||
|
|
||||||
|
gl.glEnable(GL.GL_BLEND);
|
||||||
|
gl.glBlendFunc(GL.GL_SRC_ALPHA, GL.GL_ONE_MINUS_SRC_ALPHA);
|
||||||
|
|
||||||
GLTextureObject cmapTexture = target
|
GLTextureObject cmapTexture = target
|
||||||
.getColorMapTexture(colorMapParameters);
|
.getColorMapTexture(colorMapParameters);
|
||||||
|
|
||||||
|
@ -259,6 +262,8 @@ public class GLTriangulatedImage implements ITriangulatedImage {
|
||||||
|
|
||||||
gl.glActiveTexture(GL.GL_TEXTURE1);
|
gl.glActiveTexture(GL.GL_TEXTURE1);
|
||||||
gl.glBindTexture(GL.GL_TEXTURE_1D, 0);
|
gl.glBindTexture(GL.GL_TEXTURE_1D, 0);
|
||||||
|
|
||||||
|
gl.glDisable(GL.GL_BLEND);
|
||||||
} finally {
|
} finally {
|
||||||
target.popGLState();
|
target.popGLState();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue