mirror of
https://github.com/tiennm99/godot.git
synced 2026-07-03 17:08:26 +00:00
1a85f6398f
This commit updates the double precision vertex transform code from
using the MODEL_MATRIX to now use the MODELVIEW_MATRIX instead.
This can be made possible by transforming the MODELVIEW_MATRIX
back into model space (ie, same space as the MODEL_MATRIX) and then using it as if it were the MODEL_MATRIX.
With this in place we now properly handle VERTEX transformations that
a Material Shader might do, such as billboard-ing.
(cherry picked from commit 63c6f0b93c)