Skip to content

Add mesh attribute for per-particle animation offset#95

Closed
copybara-service[bot] wants to merge 0 commit intomainfrom
test_721769656
Closed

Add mesh attribute for per-particle animation offset#95
copybara-service[bot] wants to merge 0 commit intomainfrom
test_721769656

Conversation

@copybara-service
Copy link

Add mesh attribute for per-particle animation offset

The high-level idea here is that, for a particle-based mesh, we pack surface UV into 3 bytes (12 bits for each of U and V), and use the 4th byte of the GPU attribute to store 8 bits of per-particle animation offset. For an extruded mesh, we pack surface UV into 4 bytes (12 bits for U and 20 bits for V), so that we get more bits for V along the length of the stroke, and then we omit the per-particle animation offset (since there are no particles).

@copybara-service copybara-service bot force-pushed the test_721769656 branch 5 times, most recently from ee40fc8 to f134952 Compare February 4, 2025 18:47
@copybara-service copybara-service bot closed this Feb 4, 2025
@copybara-service copybara-service bot deleted the test_721769656 branch February 4, 2025 19:21
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.

0 participants