bevy/crates/bevy_pbr/src/render
Robert Swain 3c6fad269b
Fix shader_material_glsl example after #9254 (#9311)
# 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.
2023-07-31 13:14:40 +00:00
..
clustered_forward.wgsl improve shader import model (#5703) 2023-06-27 00:29:22 +00:00
fog.rs Allow tuples and single plugins in add_plugins, deprecate add_plugin (#8097) 2023-06-21 20:51:03 +00:00
fog.wgsl improve shader import model (#5703) 2023-06-27 00:29:22 +00:00
light.rs Use GpuArrayBuffer for MeshUniform (#9254) 2023-07-30 13:17:08 +00:00
mesh_bindings.rs Use GpuArrayBuffer for MeshUniform (#9254) 2023-07-30 13:17:08 +00:00
mesh_bindings.wgsl Use GpuArrayBuffer for MeshUniform (#9254) 2023-07-30 13:17:08 +00:00
mesh_functions.wgsl Use GpuArrayBuffer for MeshUniform (#9254) 2023-07-30 13:17:08 +00:00
mesh_types.wgsl Add morph targets (#8158) 2023-06-22 20:00:01 +00:00
mesh_vertex_output.wgsl Use GpuArrayBuffer for MeshUniform (#9254) 2023-07-30 13:17:08 +00:00
mesh_view_bindings.wgsl improve shader import model (#5703) 2023-06-27 00:29:22 +00:00
mesh_view_types.wgsl EnvironmentMapLight support for WebGL2 (#7737) 2023-02-20 00:02:40 +00:00
mesh.rs Fix shader_material_glsl example after #9254 (#9311) 2023-07-31 13:14:40 +00:00
mesh.wgsl Use GpuArrayBuffer for MeshUniform (#9254) 2023-07-30 13:17:08 +00:00
mod.rs Add morph targets (#8158) 2023-06-22 20:00:01 +00:00
morph.rs Fix typos throughout the project (#9090) 2023-07-10 00:11:51 +00:00
morph.wgsl Fix typos throughout the project (#9090) 2023-07-10 00:11:51 +00:00
parallax_mapping.wgsl improve shader import model (#5703) 2023-06-27 00:29:22 +00:00
pbr_ambient.wgsl improve shader import model (#5703) 2023-06-27 00:29:22 +00:00
pbr_bindings.wgsl improve shader import model (#5703) 2023-06-27 00:29:22 +00:00
pbr_functions.wgsl Use GpuArrayBuffer for MeshUniform (#9254) 2023-07-30 13:17:08 +00:00
pbr_lighting.wgsl Fix typos throughout the project (#9090) 2023-07-10 00:11:51 +00:00
pbr_prepass.wgsl fix prepass normal_mapping (#8978) 2023-06-29 00:28:34 +00:00
pbr_types.wgsl Add parallax mapping to bevy PBR (#5928) 2023-04-15 10:25:14 +00:00
pbr.wgsl Use GpuArrayBuffer for MeshUniform (#9254) 2023-07-30 13:17:08 +00:00
shadows.wgsl improve shader import model (#5703) 2023-06-27 00:29:22 +00:00
skinning.wgsl improve shader import model (#5703) 2023-06-27 00:29:22 +00:00
utils.wgsl Screen Space Ambient Occlusion (SSAO) MVP (#7402) 2023-06-18 21:05:55 +00:00
wireframe.wgsl Use GpuArrayBuffer for MeshUniform (#9254) 2023-07-30 13:17:08 +00:00