Skip to content

Comments: the object stride with instance colours - #86

Merged
yujiaxu-ops merged 1 commit into
mainfrom
stale-comments
Nov 14, 2026
Merged

yujiaxu-ops merged 1 commit into
mainfrom
stale-comments

Conversation

@yujiaxu-ops

@yujiaxu-ops yujiaxu-ops commented Nov 14, 2026 •

Copy link
Copy Markdown
Collaborator

Two comments left wrong after #80, found in a review of it. No code change.

🤖 Generated with Claude Code


Note

Low Risk
Comment-only changes with no runtime or shader logic modified.

Overview
Fixes comment-only drift after #80 around instance-coloured scenes and object-table stride.

In particles.wgsl and gpu_particles.wgsl, the OBJECT_STRIDE note now matches reality: the shaders still use 3u, but when a scene has instance colours, gpu.rs lays out four vec4s per object (see scene.rs object_stride), so the old “particles never have instance colours” wording was wrong.

In scene.rs, the build comment no longer cites the removed tinted_source hook in gpu.rs; it only ties F_TINT to four vec4 object entries.

Reviewed by Cursor Bugbot for commit 21c6193. Bugbot is set up for automated code reviews on this repo. Configure here.

scene.rs named `tinted_source`, removed by #80. The particle shaders said
their objects never have instance colours; gpu.rs writes a stride of 4 into
them for such scenes.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@yujiaxu-ops
yujiaxu-ops merged commit a6d4fcc into main Nov 14, 2026
9 checks passed
@yujiaxu-ops
yujiaxu-ops deleted the stale-comments branch November 14, 2026 13:31
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.

1 participant