Bug 1465

Summary: Graph / GraphUI: Render a Region's ColorTexture in proper aspect-ratio, letter-boxed or zoomed (config)
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: FEATURE SCM Refs:
297c48f4fefd1ab59800524ea5f0dd56684d6786
Workaround: ---

Description Sven Gothel 2023-09-30 01:09:43 CEST
Region currently simply bloats a given texture to its region AABBox,
which renders textures with the wrong aspect ratio.

Add facility to program the texture-coordinates to either letter-box
or scaled-up (and cut) true aspect-ratio.
Default shall be zoom (scale-up and cut), 
but user shall be able to set a flag in the Region for letter-box.

Have the shader clip texture coordinates properly, 
best w/o branching to soothe performance.
Comment 1 Sven Gothel 2023-09-30 01:50:05 CEST
commit 297c48f4fefd1ab59800524ea5f0dd56684d6786

    Bug 1465 - Graph / GraphUI: Render a Region's ColorTexture in proper aspect-ratio, letter-boxed or zoomed (config) + Bug 1466 Fix color mixing
    
    Bug 1465: Region currently simply bloats a given texture to its region AABBox,
    which renders textures with the wrong aspect ratio.
    
    Add facility to program the texture-coordinates to either letter-box
    or scaled-up (and cut) true aspect-ratio.
    Default shall be zoom (scale-up and cut),
    but user shall be able to set a flag in the Region for letter-box.
    
    Have the shader clip texture coordinates properly,
    best w/o branching to soothe performance.
    
    See functions.glsl