From 94def2d64fd6fb2d789e5d9176f67941f0bb5b8a Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 2 Aug 2023 14:41:05 +0200 Subject: 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. --- src/jogl/classes/com/jogamp/graph/curve/opengl/RenderState.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/jogl/classes/com') 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; } -- cgit v1.2.3