Skip to content

Resize independent fragment shader? #285

Answered by parasyte
dbalsom asked this question in Q&A
Discussion options

You must be logged in to vote

I suppose this is more of a question than a bug report.

No problem! We have discussions for these kinds of questions!

How can I run a fragment shader that operates just on the logical pixel buffer and not the viewport window size?

The order you call the renderers in pixels.render_with() matters. If you call your renderer first, then it receives the pre-scaled texture. If you call it after the default scaling renderer then it receives the scaled texture. You probably want to call your renderer first, then pass its output to the scaling renderer.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@dbalsom
Comment options

@dbalsom
Comment options

@parasyte
Comment options

@dbalsom
Comment options

Answer selected by dbalsom
Comment options

You must be logged in to vote
1 reply
@parasyte
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #284 on June 20, 2022 14:02.