Open meekee7 opened 4 years ago
The D3D sky rendering happens in the function CSkyRender::DrawD3D
. There is a also the function CSkyRender::FillD3D
that fills the entire backdrop with fog. So far, I am struggling to combine the results of both functions.
In D3D mode, the sky is just a thick black line near the horizon.![otp-sky-horizon](https://user-images.githubusercontent.com/5839584/82764256-c419a580-9e0d-11ea-8487-2ccf0348c507.png)
The vanilla version also has this problem in D3D mode, but worse: the line contains semi-random material from the rest of the frame or previous frames and spazzes out during movement.![vanilla-sky-horizon](https://user-images.githubusercontent.com/5839584/82764257-c4b23c00-9e0d-11ea-8651-1c01d0527082.png)
For reference: this is what the sky horizon line looks like in OTP software mode:![otp-software-sky-horizon](https://user-images.githubusercontent.com/5839584/82764528-acdbb780-9e0f-11ea-8755-1092e17608e3.png)