From 90edc3b0a5fe1304118ba5eb51b08284a008bece Mon Sep 17 00:00:00 2001 From: Ray Date: Mon, 1 Jun 2026 20:42:38 +0200 Subject: [PATCH] Update models_animation_blending.c --- examples/models/models_animation_blending.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/examples/models/models_animation_blending.c b/examples/models/models_animation_blending.c index 63eba61cd..e98547c7e 100644 --- a/examples/models/models_animation_blending.c +++ b/examples/models/models_animation_blending.c @@ -58,7 +58,7 @@ int main(void) Shader skinningShader = LoadShader(TextFormat("resources/shaders/glsl%i/skinning.vs", GLSL_VERSION), TextFormat("resources/shaders/glsl%i/skinning.fs", GLSL_VERSION)); - // Assign skinning shader to all materials shaders + // NOTE: Assign skinning shader to all materials shaders //for (int i = 0; i < model.materialCount; i++) model.materials[i].shader = skinningShader; // Load model animations @@ -244,6 +244,12 @@ int main(void) if (GuiDropdownBox((Rectangle){ GetScreenWidth() - 170.0f, 10, 160, 24 }, TextJoin(animNames, animCount, ";"), &animIndex1, dropdownEditMode1)) dropdownEditMode1 = !dropdownEditMode1; + GuiSetStyle(LABEL, TEXT_ALIGNMENT, TEXT_ALIGN_CENTER); + GuiSetStyle(DEFAULT, TEXT_SIZE, GuiGetFont().baseSize*2); + GuiLabel((Rectangle){ 0, GetScreenHeight() - 100.0f, GetScreenWidth(), 40 }, "PRESS SPACE to START BLENDING"); + GuiSetStyle(DEFAULT, TEXT_SIZE, GuiGetFont().baseSize); + GuiSetStyle(LABEL, TEXT_ALIGNMENT, TEXT_ALIGN_LEFT); + // Draw playing timeline with keyframes for anim0[] GuiProgressBar((Rectangle){ 60, GetScreenHeight() - 60.0f, GetScreenWidth() - 180.0f, 20 }, "ANIM 0", TextFormat("FRAME: %.2f / %i", animFrameProgress0, anims[animIndex0].keyframeCount),