Skip to content

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