Files
filament/shaders/src
Philip Rideout fcbc6d43a1 Fix morphed normals.
Our `morphNormal` GLSL function treats each normal target as a
displacement from the base normal (similar to the glTF spec) but the
normal that is extracted from the tangent frame is actually an absolute
normal.

In other words, if b is the base normal, we were doing:

    b = b + w0 * n0 + w1 * n1 + ...

This is obviously wrong, since the base normal has an overpowering
influence.

The fixed math looks like this:

    b = b + w0 * (n0 - b) + w1 * (n1 - b) + ...

Fixes #5584.
2022-05-24 15:03:30 -07:00
..
2022-02-13 22:53:47 -08:00
2021-04-27 14:20:50 -07:00
2020-09-16 00:18:49 -07:00
2022-05-24 15:03:30 -07:00
2022-03-21 10:46:55 -07:00
2022-02-13 22:53:47 -08:00
2022-05-24 15:03:30 -07:00
2019-05-20 14:45:26 -07:00