bevy/examples/shader
Charles Giguere 435fb7af4f Improve shader_material example documentation (#3601)
# Objective

While trying to learn how to use custom shaders, I had difficulty figuring out how to use a vertex shader. My confusion was mostly because all the other shader examples used a custom pipeline, but I didn't want a custom pipeline. After digging around I realised that I simply needed to add a function to the `impl Material` block. I also searched what was the default shader used, because it wasn't obvious to me where to find it.

## Solution

Added a few comments explaining what is going on in the example and a link to the default shader.
2022-01-26 18:52:54 +00:00
..
animate_shader.rs add some more pipelined-rendering shader examples (#3041) 2022-01-05 19:43:11 +00:00
compute_shader_game_of_life.rs add some more pipelined-rendering shader examples (#3041) 2022-01-05 19:43:11 +00:00
shader_defs.rs Fix a typo in shader_defs example (#3762) 2022-01-24 23:44:08 +00:00
shader_instancing.rs bevy_render: Provide a way to opt-out of the built-in frustum culling (#3711) 2022-01-17 22:55:44 +00:00
shader_material.rs Improve shader_material example documentation (#3601) 2022-01-26 18:52:54 +00:00
shader_material_glsl.rs add some more pipelined-rendering shader examples (#3041) 2022-01-05 19:43:11 +00:00