From 5494ad6e84daf457c5558bceb825d6e54202308b Mon Sep 17 00:00:00 2001 From: TheNoiselessNoise Date: Fri, 7 Aug 2026 07:33:23 +0200 Subject: [PATCH 1/7] models_loading_iqm - actually use animIndex --- examples/models/models_loading_iqm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/models/models_loading_iqm.c b/examples/models/models_loading_iqm.c index 0eab898a4dff..46581e4d4afa 100644 --- a/examples/models/models_loading_iqm.c +++ b/examples/models/models_loading_iqm.c @@ -66,8 +66,8 @@ int main(void) // Play animation when spacebar is held down animCurrentFrame += 1.0f; - UpdateModelAnimation(model, anims[0], animCurrentFrame); - if (animCurrentFrame >= anims[0].keyframeCount) animCurrentFrame = 0; + UpdateModelAnimation(model, anims[animIndex], animCurrentFrame); + if (animCurrentFrame >= anims[animIndex].keyframeCount) animCurrentFrame = 0; //---------------------------------------------------------------------------------- // Draw From 9f3132df9530fc3b42742dc885bf2d923b896b67 Mon Sep 17 00:00:00 2001 From: TheNoiselessNoise Date: Fri, 7 Aug 2026 07:35:11 +0200 Subject: [PATCH 2/7] models_decals - fix button placement --- examples/models/models_decals.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/models/models_decals.c b/examples/models/models_decals.c index 2956d3c7ab53..dee998d200b3 100644 --- a/examples/models/models_decals.c +++ b/examples/models/models_decals.c @@ -249,7 +249,7 @@ int main(void) DrawText("(c) Character model and texture from kenney.nl", screenWidth - 260, screenHeight - 20, 10, GRAY); // UI elements - if (GuiButton((Rectangle){ 10, screenHeight - 1000.f, 100, 60 }, showModel ? "Hide Model" : "Show Model")) showModel = !showModel; + if (GuiButton((Rectangle){ 10, screenHeight - 100.0f, 100, 60 }, showModel ? "Hide Model" : "Show Model")) showModel = !showModel; if (GuiButton((Rectangle){ 10 + 110, screenHeight - 100.0f, 100, 60 }, "Clear Decals")) { From 8329b93aabec9ea3545a9830f8132c8aa20e79e2 Mon Sep 17 00:00:00 2001 From: TheNoiselessNoise Date: Fri, 7 Aug 2026 07:36:43 +0200 Subject: [PATCH 3/7] core_highdpi_testbed - unrelated TODO --- examples/core/core_highdpi_testbed.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/examples/core/core_highdpi_testbed.c b/examples/core/core_highdpi_testbed.c index 16c5d2b4d6ee..9b2cfbae2267 100644 --- a/examples/core/core_highdpi_testbed.c +++ b/examples/core/core_highdpi_testbed.c @@ -97,9 +97,6 @@ int main(void) // De-Initialization //-------------------------------------------------------------------------------------- - - // TODO: Unload all loaded resources at this point - CloseWindow(); // Close window and OpenGL context //-------------------------------------------------------------------------------------- From c6b34d2322960682e024e67783982ddc1f43880c Mon Sep 17 00:00:00 2001 From: TheNoiselessNoise Date: Fri, 7 Aug 2026 07:47:23 +0200 Subject: [PATCH 4/7] audio_sound_positioning - fix SetSoundPosition and panning --- examples/audio/audio_sound_positioning.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/examples/audio/audio_sound_positioning.c b/examples/audio/audio_sound_positioning.c index 41ea4cb7484f..762ed05b16e1 100644 --- a/examples/audio/audio_sound_positioning.c +++ b/examples/audio/audio_sound_positioning.c @@ -116,14 +116,21 @@ static void SetSoundPosition(Camera listener, Sound sound, Vector3 position, flo // Calculate normalized vectors for spatial positioning Vector3 normalizedDirection = Vector3Normalize(direction); Vector3 forward = Vector3Normalize(Vector3Subtract(listener.target, listener.position)); - Vector3 right = Vector3Normalize(Vector3CrossProduct(listener.up, forward)); + Vector3 right = Vector3Normalize(Vector3CrossProduct(forward, listener.up)); // Reduce volume for sounds behind the listener float dotProduct = Vector3DotProduct(forward, normalizedDirection); if (dotProduct < 0.0f) attenuation *= (1.0f + dotProduct*0.5f); // Set stereo panning based on sound position relative to listener - float pan = 0.5f + 0.5f*Vector3DotProduct(normalizedDirection, right); + float pan = 0; + if (RAYLIB_VERSION_MAJOR >= 6) { + // -1.0 - 1.0 + pan = Clamp(Vector3DotProduct(normalizedDirection, right), -1.0f, 1.0f); + } else { + // 0.0 - 1.0 + pan = 0.5f + 0.5f*Vector3DotProduct(normalizedDirection, right); + } // Apply final sound properties SetSoundVolume(sound, attenuation); From 9dde41204f25d78ba66fc78969aef4d7e9bca0a2 Mon Sep 17 00:00:00 2001 From: TheNoiselessNoise Date: Fri, 7 Aug 2026 08:10:08 +0200 Subject: [PATCH 5/7] SetSoundPan is clamped already --- examples/audio/audio_sound_positioning.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/audio/audio_sound_positioning.c b/examples/audio/audio_sound_positioning.c index 762ed05b16e1..19184c18857d 100644 --- a/examples/audio/audio_sound_positioning.c +++ b/examples/audio/audio_sound_positioning.c @@ -126,7 +126,7 @@ static void SetSoundPosition(Camera listener, Sound sound, Vector3 position, flo float pan = 0; if (RAYLIB_VERSION_MAJOR >= 6) { // -1.0 - 1.0 - pan = Clamp(Vector3DotProduct(normalizedDirection, right), -1.0f, 1.0f); + pan = Vector3DotProduct(normalizedDirection, right); } else { // 0.0 - 1.0 pan = 0.5f + 0.5f*Vector3DotProduct(normalizedDirection, right); From 20eb1bbfba911b6b04cae637770bbb79ea0340f0 Mon Sep 17 00:00:00 2001 From: TheNoiselessNoise Date: Fri, 7 Aug 2026 21:23:21 +0200 Subject: [PATCH 6/7] remove version check --- examples/audio/audio_sound_positioning.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/examples/audio/audio_sound_positioning.c b/examples/audio/audio_sound_positioning.c index 19184c18857d..052137870131 100644 --- a/examples/audio/audio_sound_positioning.c +++ b/examples/audio/audio_sound_positioning.c @@ -123,14 +123,7 @@ static void SetSoundPosition(Camera listener, Sound sound, Vector3 position, flo if (dotProduct < 0.0f) attenuation *= (1.0f + dotProduct*0.5f); // Set stereo panning based on sound position relative to listener - float pan = 0; - if (RAYLIB_VERSION_MAJOR >= 6) { - // -1.0 - 1.0 - pan = Vector3DotProduct(normalizedDirection, right); - } else { - // 0.0 - 1.0 - pan = 0.5f + 0.5f*Vector3DotProduct(normalizedDirection, right); - } + float pan = Vector3DotProduct(normalizedDirection, right); // Apply final sound properties SetSoundVolume(sound, attenuation); From 1a53f5184ad882b91de2dc2a4edbd4464e29ff7d Mon Sep 17 00:00:00 2001 From: TheNoiselessNoise Date: Fri, 7 Aug 2026 21:26:40 +0200 Subject: [PATCH 7/7] fix 'updated with' in the header --- examples/audio/audio_sound_positioning.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/audio/audio_sound_positioning.c b/examples/audio/audio_sound_positioning.c index 052137870131..67e079b0ae29 100644 --- a/examples/audio/audio_sound_positioning.c +++ b/examples/audio/audio_sound_positioning.c @@ -4,7 +4,7 @@ * * Example complexity rating: [★★☆☆] 2/4 * -* Example originally created with raylib 5.5, last time updated with raylib 5.5 +* Example originally created with raylib 5.5, last time updated with raylib 6.0 * * Example contributed by Le Juez Victor (@Bigfoot71) and reviewed by Ramon Santamaria (@raysan5) *