Skip to content

Support extra sideview positions and centering#9

Open
borjafac wants to merge 2 commits into
wheaney:mainfrom
borjafac:main
Open

Support extra sideview positions and centering#9
borjafac wants to merge 2 commits into
wheaney:mainfrom
borjafac:main

Conversation

@borjafac

Copy link
Copy Markdown

Add positions 5–8 to the sideview_position enum (center-left, center-top, center-right, center-bottom) and update applySideviewTransform accordingly. Bottom/right checks now include the new indices (8 and 7), and new branches set texcoord_mins.x/y to the centered offset ((1.0 - display_size)/2.0) for center placements so the sideview can be positioned along center edges.

Add positions 5–8 to the sideview_position enum (center-left, center-top, center-right, center-bottom) and update applySideviewTransform accordingly. Bottom/right checks now include the new indices (8 and 7), and new branches set texcoord_mins.x/y to the centered offset ((1.0 - display_size)/2.0) for center placements so the sideview can be positioned along center edges.
Comment thread Sombrero.frag Outdated
Comment thread Sombrero.frag Outdated
Update Sombrero.frag comments for sideview_position indices to use clearer, consistent names (e.g. 'middle-center', 'middle-left', 'top-center', 'bottom-center') and replace the 'vertical center' comment with 'middle' for clarity. This is a documentation-only change with no functional effect.
@borjafac

Copy link
Copy Markdown
Author

Done requested changes :)

@borjafac borjafac requested a review from wheaney May 29, 2026 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants