diff options
author | Sven Gothel <[email protected]> | 2023-08-02 14:41:05 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-08-02 14:41:05 +0200 |
commit | 94def2d64fd6fb2d789e5d9176f67941f0bb5b8a (patch) | |
tree | 65890f2d3645dd583ce3c2d97e6954d5c43c3992 | |
parent | a4793735eeead4ae5d54422bf8d76511094088ea (diff) |
Graph RenderState: Initialize colorStatic w/ all white (1,1,1,1) if color-channel is used and no static-color set
Commit a973324a75b55b722caa755a7a573be849d997e4 was setting the alpha to 1,
which avoids the 'discard' in the shader.
This at least gave us a black color ;-)
However, the shader modulates the color, i.e. color-channel * color-static,
therefor we need an all-white color-static as default
if user only sets the color-channel.
-rw-r--r-- | src/jogl/classes/com/jogamp/graph/curve/opengl/RenderState.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jogl/classes/com/jogamp/graph/curve/opengl/RenderState.java b/src/jogl/classes/com/jogamp/graph/curve/opengl/RenderState.java index dc1f0960a..f2e1c8066 100644 --- a/src/jogl/classes/com/jogamp/graph/curve/opengl/RenderState.java +++ b/src/jogl/classes/com/jogamp/graph/curve/opengl/RenderState.java @@ -193,7 +193,7 @@ public class RenderState { this.pmvMatrix = null != sharedPMVMatrix ? sharedPMVMatrix : new PMVMatrix(); this.weight = new float[1]; this.weightBuffer = FloatBuffer.wrap(weight); - this.colorStatic = new float[] { 0, 0, 0, 1 }; + this.colorStatic = new float[] { 1, 1, 1, 1 }; this.colorStaticBuffer = FloatBuffer.wrap(colorStatic); this.hintBitfield = 0; } |