playdeadgames / temporal

Temporal Reprojection Anti-Aliasing for Unity 5.0+
MIT License
1.84k stars 192 forks source link

GameObject with scale -1, -1, -1 has improper VelocityBufferTag #23

Open GruchaAP opened 4 years ago

GruchaAP commented 4 years ago

There is a problem with motion gameObject when it has scale vector -1, -1, -1. It seems that in such situation VelocityBufferTag doesn't work correctly (Mesh is blurred) Does anyone know how to fix that issue?

GruchaAP commented 4 years ago

I've figured it out. In such situation _transform.localToWorldMatrix has a wrong scale. Had to multiply it by proper scale Matrix.