Skip to content

WebGPURenderer: InstancedMesh Supports Instance Color and Morph Target#27928

Merged
sunag merged 7 commits into
mrdoob:devfrom
RenaudRohlinger:utsubo/feat/morph-instancing
Mar 18, 2024
Merged

WebGPURenderer: InstancedMesh Supports Instance Color and Morph Target#27928
sunag merged 7 commits into
mrdoob:devfrom
RenaudRohlinger:utsubo/feat/morph-instancing

Conversation

@RenaudRohlinger
Copy link
Copy Markdown
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
Comment thread examples/jsm/nodes/accessors/NormalNode.js Outdated
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