google / filament

Filament is a real-time physically based rendering engine for Android, iOS, Windows, Linux, macOS, and WebGL2
https://google.github.io/filament/
Apache License 2.0
17.35k stars 1.84k forks source link

Automatically update vertex normals when morphing #7876

Closed cjlong1213 closed 1 month ago

cjlong1213 commented 1 month ago

normal222

Is your feature request related to a problem? Please describe. As far as I know, the Filament would not update vertex normal(tangent) when morphing animation, it only calculate the normal at first loading, the dynamic normal can make more effect at avatar emoticon animation

Describe the solution you'd like A API or solution which can update vertex normal at morphing

Describe alternatives you've considered /

OS and backend Android OpenGLES

Any suggestion? Thanks in advance.

pixelflinger commented 1 month ago

I don't understand the problem. Filament does update the normals when morphing if they are supplied in the MorphTargetBuffer.