bevy/examples/shader
Boutillier 6b073ee412 Update shader_material_glsl example to include texture sampling (#5215)
# Objective

Add texture sampling to the GLSL shader example, as naga does not support the commonly used sampler2d type.
Fixes #5059

## Solution

- Align the shader_material_glsl example behaviour with the shader_material example,  as the later includes texture sampling.
- Update the GLSL shader to do texture sampling the way naga supports it, and document the way naga does not support it.

## Changelog

- The shader_material_glsl example has been updated to demonstrate texture sampling using the GLSL shading language.


Co-authored-by: Carter Anderson <mcanders1@gmail.com>
2022-07-08 01:14:22 +00:00
..
animate_shader.rs Add ViewRangefinder3d to reduce boilerplate when enqueuing standard 3D PhaseItems. (#5014) 2022-07-05 06:13:39 +00:00
array_texture.rs Better Materials: AsBindGroup trait and derive, simpler Material trait (#5053) 2022-06-30 23:48:46 +00:00
compute_shader_game_of_life.rs Update commented vsync code in example to use present_mode (#4926) 2022-06-04 20:00:01 +00:00
custom_vertex_attribute.rs Better Materials: AsBindGroup trait and derive, simpler Material trait (#5053) 2022-06-30 23:48:46 +00:00
post_processing.rs Add helper methods for rotating Transforms (#5151) 2022-07-01 03:58:54 +00:00
shader_defs.rs Better Materials: AsBindGroup trait and derive, simpler Material trait (#5053) 2022-06-30 23:48:46 +00:00
shader_instancing.rs Add ViewRangefinder3d to reduce boilerplate when enqueuing standard 3D PhaseItems. (#5014) 2022-07-05 06:13:39 +00:00
shader_material_glsl.rs Update shader_material_glsl example to include texture sampling (#5215) 2022-07-08 01:14:22 +00:00
shader_material_screenspace_texture.rs Better Materials: AsBindGroup trait and derive, simpler Material trait (#5053) 2022-06-30 23:48:46 +00:00
shader_material.rs Better Materials: AsBindGroup trait and derive, simpler Material trait (#5053) 2022-06-30 23:48:46 +00:00