Commit a54b10e
authored
Fix issue 1354395 where the right eye was shifted in stereo mode (#5789)
This commit Unity-Technologies/PostProcessing@08b1319 forced a reset on the projection matrix in PreCull and PostRender to avoid issues when switching on/off the TAA.
This is fine except that it doesn't reset the projection matrix to the device's projection matrix which seems to trickle down somewhere and result in some systems getting the wrong projection matrix.
This fix consist in forcing the device's projection matrix onto the camera to make sure that everyone is using the correct matrix if we happen to be in stereo.
PostRender doesn't need to copy from device because the Render step of the TAA PostProcessLayer performs that action.
PostRender doesn't need to deal with unjittered because that's probably only used in TAA.1 parent b0442a4 commit a54b10e
File tree
1 file changed
+36
-8
lines changed- com.unity.postprocessing/PostProcessing/Runtime
1 file changed
+36
-8
lines changedLines changed: 36 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
447 | 447 | | |
448 | 448 | | |
449 | 449 | | |
450 | | - | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
451 | 474 | | |
452 | | - | |
453 | 475 | | |
454 | 476 | | |
455 | 477 | | |
456 | 478 | | |
457 | | - | |
458 | 479 | | |
459 | 480 | | |
460 | 481 | | |
| |||
689 | 710 | | |
690 | 711 | | |
691 | 712 | | |
692 | | - | |
693 | | - | |
694 | | - | |
695 | 713 | | |
696 | | - | |
697 | | - | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
698 | 726 | | |
699 | 727 | | |
700 | 728 | | |
| |||
0 commit comments