Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - Add globals struct to mesh2d #6222

Closed

Commits on Oct 10, 2022

  1. Add globals struct to mesh2d

    - When using `Material2d` for shaders, allow accessing the `globals`
    struct.
    This work is based on commit 8073362,
    whichs adds the struct to the 3D counterpart.
    
    - Copy the struct from `bevy_pbr` as-is into `bevy_sprite`.
    Update the bind group layout and the bind group creation
    to match.
    
    - Binds the `globals` struct as a uniform in group 0 binding 1 for the
    mesh 2D view.
    
    Signed-off-by: Torstein Grindvik <torstein.grindvik@nordicsemi.no>
    torsteingrindvik committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    b3b5d0e View commit details
    Browse the repository at this point in the history