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

Fix shader_material_glsl example after #9254 #9311

Merged
merged 1 commit into from
Jul 31, 2023

Conversation

superdump
Copy link
Contributor

Objective

  • Fix shader_material_glsl example

Solution

  • Expose the PER_OBJECT_BUFFER_BATCH_SIZE shader def through the default MeshPipeline specialization.
  • Make use of it in the custom_material.vert shader to access the mesh binding.

Changelog

  • Added: Exposed the PER_OBJECT_BUFFER_BATCH_SIZE shader def through the default MeshPipeline specialization to use in custom shaders not using bevy_pbr::mesh_bindings that still want to use the mesh binding in some way.

Copy link
Contributor

@robtfm robtfm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shame we have to reintroduce the shader def in the mesh pipeline but hopefully it'll be temporary.

@mockersf mockersf added A-Rendering Drawing game state to the screen S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it labels Jul 30, 2023
@superdump superdump added this pull request to the merge queue Jul 31, 2023
Merged via the queue into bevyengine:main with commit 3c6fad2 Jul 31, 2023
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rendering Drawing game state to the screen S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants