Bug 1466

Summary: Graph / GraphUI: Fix color mixing in Region shader with texture, colorStatic and colorChannel
Product: [JogAmp] Jogl Reporter: Sven Gothel <sgothel>
Component: graphAssignee: Sven Gothel <sgothel>
Status: RESOLVED FIXED    
Severity: normal CC: rami.santina, sgothel
Priority: P4    
Version: 2.6.0   
Hardware: All   
OS: all   
Type: DEFECT SCM Refs:
297c48f4fefd1ab59800524ea5f0dd56684d6786
Workaround: ---

Description Sven Gothel 2023-09-30 01:15:39 CEST
Current color mix: texture * color_channel * color_static
is useless in GraphUI.

color_static shall modulate the texture, which works.
But in case of color_channel (attribute/varying)
we want it to be mixed so it can become the more dominant color
for e.g. a border.

Desired is:

color = vec4( mix( tex.rgb * gcu_ColorStatic.rgb, gcv_Color.rgb, gcv_Color.a ), 
              mix( tex.a * gcu_ColorStatic.a, 1, gcv_Color.a) );
Comment 1 Sven Gothel 2023-09-30 01:49:40 CEST
See commit 297c48f4fefd1ab59800524ea5f0dd56684d6786