Skip to content

Solid Particle Systems: Fix vertex colors when they only have 3 components#18131

Merged
sebavan merged 7 commits intomasterfrom
Popov72-patch-3
Mar 19, 2026
Merged

Solid Particle Systems: Fix vertex colors when they only have 3 components#18131
sebavan merged 7 commits intomasterfrom
Popov72-patch-3

Conversation

@Popov72
Copy link
Contributor

@Popov72 Popov72 commented Mar 18, 2026

Copilot AI review requested due to automatic review settings March 18, 2026 22:26
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes Solid Particle System (SPS) shape ingestion so meshes whose vertex colors are stored as RGB (3 components, common for glTF) are normalized to RGBA before SPS code reads 4 components per color.

Changes:

  • Add RGB→RGBA normalization in SolidParticleSystem.digest()
  • Add RGB→RGBA normalization in SolidParticleSystem.addShape()

You can also share your feedback on Copilot code review. Take the survey.

Popov72 and others added 3 commits March 18, 2026 23:31
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@bjsplat
Copy link
Collaborator

bjsplat commented Mar 18, 2026

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@bjsplat
Copy link
Collaborator

bjsplat commented Mar 18, 2026

Snapshot stored with reference name:
refs/pull/18131/merge

Test environment:
https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/refs/pull/18131/merge/index.html

To test a playground add it to the URL, for example:

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/refs/pull/18131/merge/index.html#WGZLGJ#4600

Links to test your changes to core in the published versions of the Babylon tools (does not contain changes you made to the tools themselves):

https://playground.babylonjs.com/?snapshot=refs/pull/18131/merge
https://sandbox.babylonjs.com/?snapshot=refs/pull/18131/merge
https://gui.babylonjs.com/?snapshot=refs/pull/18131/merge
https://nme.babylonjs.com/?snapshot=refs/pull/18131/merge

To test the snapshot in the playground with a playground ID add it after the snapshot query string:

https://playground.babylonjs.com/?snapshot=refs/pull/18131/merge#BCU1XR#0

If you made changes to the sandbox or playground in this PR, additional comments will be generated soon containing links to the dev versions of those tools.

@bjsplat
Copy link
Collaborator

bjsplat commented Mar 18, 2026

@bjsplat
Copy link
Collaborator

bjsplat commented Mar 18, 2026

@bjsplat
Copy link
Collaborator

bjsplat commented Mar 18, 2026

@bjsplat
Copy link
Collaborator

bjsplat commented Mar 19, 2026

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@bjsplat
Copy link
Collaborator

bjsplat commented Mar 19, 2026

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@bjsplat
Copy link
Collaborator

bjsplat commented Mar 19, 2026

Snapshot stored with reference name:
refs/pull/18131/merge

Test environment:
https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/refs/pull/18131/merge/index.html

To test a playground add it to the URL, for example:

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/refs/pull/18131/merge/index.html#WGZLGJ#4600

Links to test your changes to core in the published versions of the Babylon tools (does not contain changes you made to the tools themselves):

https://playground.babylonjs.com/?snapshot=refs/pull/18131/merge
https://sandbox.babylonjs.com/?snapshot=refs/pull/18131/merge
https://gui.babylonjs.com/?snapshot=refs/pull/18131/merge
https://nme.babylonjs.com/?snapshot=refs/pull/18131/merge

To test the snapshot in the playground with a playground ID add it after the snapshot query string:

https://playground.babylonjs.com/?snapshot=refs/pull/18131/merge#BCU1XR#0

If you made changes to the sandbox or playground in this PR, additional comments will be generated soon containing links to the dev versions of those tools.

@bjsplat
Copy link
Collaborator

bjsplat commented Mar 19, 2026

@bjsplat
Copy link
Collaborator

bjsplat commented Mar 19, 2026

@bjsplat
Copy link
Collaborator

bjsplat commented Mar 19, 2026

@sebavan sebavan merged commit 75ccf85 into master Mar 19, 2026
21 checks passed
@sebavan sebavan deleted the Popov72-patch-3 branch March 19, 2026 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants