| 798 | } |
| 799 | |
| 800 | void EveSpaceScene::ApplyUpscalingToPerFrameData( uint32_t width, uint32_t height, Tr2RenderContext& renderContext ) |
| 801 | { |
| 802 | // Vs Data |
| 803 | m_perFrameVS.TargetResolution.x = (float)width; |
| 804 | m_perFrameVS.TargetResolution.y = (float)height; |
| 805 | m_perFrameVS.ViewportSize.x = (float)width; |
| 806 | m_perFrameVS.ViewportSize.y = (float)height; |
| 807 | // Ps Data |
| 808 | m_perFramePS.TargetResolution.x = (float)width; |
| 809 | m_perFramePS.TargetResolution.y = (float)height; |
| 810 | m_perFramePS.ViewportSize.x = (float)width; |
| 811 | m_perFramePS.ViewportSize.y = (float)height; |
| 812 | ApplyPerFrameData( renderContext ); |
| 813 | } |
| 814 | |
| 815 | void EveSpaceScene::ApplyPerFrameData( Tr2RenderContext& renderContext ) |
| 816 | { |