Skip to content

Post processing example doesn't support resizing #5315

@johanhelsing

Description

@johanhelsing

How can Bevy's documentation be improved?

The post_processing example doesn't currently support resizing. Its stated intent is to be:

useful to implement your own post-processing effect such as
edge detection, blur, pixelization, vignette... and countless others.

If people copy this code to their own projects it would be really nice if it properly supported resizing.

I think there may be two viable solutions to this:

  1. Write a system that resizes the full screen quad whenever the window size changes
  2. Write a custom vertex shader that takes the view.width and height uniform values into account and is always snapped to the edges of the viewport.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-ExamplesAn addition or correction to our examplesD-TrivialNice and easy! A great choice to get started with Bevy

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions