Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebGPURenderer: InstancedMesh Supports Instance Color and Morph Target #27928

Merged
merged 7 commits into from
Mar 18, 2024

Conversation

RenaudRohlinger
Copy link
Collaborator

@RenaudRohlinger RenaudRohlinger commented Mar 16, 2024

This PR introduces support for instance color and morph target in InstancedMesh within the WebGPURenderer.

Additionally, I have aligned the logic for meshes where a normal attribute is unavailable, opting instead to fall back on to default value vec3(0,1,0) in NormalNode. Previously, meshes with shading appeared entirely black when the normal attribute was unavailable.

Live example:
https://raw.githack.com/renaudrohlinger/three.js/utsubo/feat/morph-instancing/examples/webgpu_instancing_morph.html

image

This contribution is funded by Utsubo

@RenaudRohlinger RenaudRohlinger added this to the r163 milestone Mar 16, 2024
@RenaudRohlinger RenaudRohlinger requested a review from sunag March 16, 2024 10:47
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