From 0f9c52cc3823a83287f80fb1d31d64f96e9f75f3 Mon Sep 17 00:00:00 2001 From: Robin KAY Date: Fri, 18 Nov 2022 21:43:15 +0000 Subject: [PATCH] Fix animated_fox example. --- examples/animated_fox.rs | 1 + src/outline.wgsl | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/examples/animated_fox.rs b/examples/animated_fox.rs index 3f78b22..9d31155 100644 --- a/examples/animated_fox.rs +++ b/examples/animated_fox.rs @@ -79,6 +79,7 @@ fn setup_scene_once_loaded( colour: Color::RED, }, stencil: OutlineStencil, + ..default() }); } *done = true; diff --git a/src/outline.wgsl b/src/outline.wgsl index 757c2e7..29f8d61 100644 --- a/src/outline.wgsl +++ b/src/outline.wgsl @@ -26,6 +26,12 @@ struct OutlineVertexUniform { @group(1) @binding(0) var mesh: Mesh; +#ifdef SKINNED +@group(1) @binding(1) +var joint_matrices: SkinnedMesh; +#import bevy_pbr::skinning +#endif + @group(2) @binding(0) var view_uniform: OutlineViewUniform;