Bug 1465 - Graph / GraphUI: Render a Region's ColorTexture in proper aspect-ratio, letter-boxed or zoomed (config)
Summary: Graph / GraphUI: Render a Region's ColorTexture in proper aspect-ratio, lette...
Status: RESOLVED FIXED
Alias: None
Product: Jogl
Classification: JogAmp
Component: graph (show other bugs)
Version: 2.6.0
Hardware: All all
: P4 normal
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2023-09-30 01:09 CEST by Sven Gothel
Modified: 2023-09-30 01:50 CEST (History)
2 users (show)

See Also:
Type: FEATURE
SCM Refs:
297c48f4fefd1ab59800524ea5f0dd56684d6786
Workaround: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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