# 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. |
||
|---|---|---|
| .. | ||
| animate_shader.rs | ||
| compute_shader_game_of_life.rs | ||
| shader_defs.rs | ||
| shader_instancing.rs | ||
| shader_material_glsl.rs | ||
| shader_material.rs | ||