Skip to content

[Foliage swaying 3D] Fix Three.js scaling and gradient consistency (v1.2.0) - #2324

Merged
4ian merged 1 commit into
GDevelopApp:mainfrom
baldieandbaldie-commits:fix/foliage-swaying-r185
Oct 18, 2026
Merged

4ian merged 1 commit into
GDevelopApp:mainfrom
baldieandbaldie-commits:fix/foliage-swaying-r185

Conversation

@baldieandbaldie-commits

Copy link
Copy Markdown
Contributor

Changes

Updates FoliageSwaying3D from 1.1.0 to 1.2.0.

  1. Fixed updated Three.js scaling issues affecting distance fade and culling
  2. Restored consistent wind, gust-map and automatic sway response behavior
  3. Fixed gust toggling and uniform updates after shader recompilation
  4. Matched gradients between regular and instanced objects, including runtime transform changes
  5. Corrected leaf-only bounds and multi-material instancing, preventing duplicated polygons

Demo project

Download the demo project (ZIP)

Validation

  • JSON parsing and function-scope syntax checks pass for all 19 embedded JavaScript events.
  • Preliminary repository extension validation passes.
  • The submitted JSON is the unmodified GDevelop export; its JavaScript blocks match the working extension JSON.
  • No new GDevelop runtime/visual test was run as part of preparing this PR.

Reviewer note

The full repository validator flags only runtimeScene.getRenderer3DInverseWorldScale for review/allowlisting. The extension uses this API for the renderer world-scale correction, with a fallback of 1 when the API is unavailable. The existing shader precompile event is preserved.

@baldieandbaldie-commits
baldieandbaldie-commits requested a review from a team as a code owner October 18, 2026 20:42
@4ian
4ian merged commit d3eb269 into GDevelopApp:main Oct 18, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants