Skip to content

Ability to draw meshes in 2d with the new renderer #3326

Closed
@Ixentus

Description

@Ixentus

What problem does this solve or what need does it fill?

Using the old renderer it was possible to draw shapes using meshes with SpriteBundles. However with the new renderer SpriteBundles no longer have Meshes and Materials. I've tried to convert them to PbrBundles instead, but nothing gets drawn. This might be because there is no lighting. François said on Discord that custom meshes in 2d are not supported by default anymore.

What solution would you like?

I'm not sure what the best solution to fix this would be since I'm very new to rendering, but one of the following might do:

  • Automatic lighting for 2d
  • A new bundle for 2d meshes
  • A modified pipeline for 2d

Additional context

Alternative ways to draw custom shapes also exist. However both bevy_lyon and bevy_svg also use meshes in their implementations and haven't been updated yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-RenderingDrawing game state to the screenC-FeatureA new feature, making something new possibleP-RegressionFunctionality that used to work but no longer does. Add a test for this!

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions