OpenTrespasser / JurassicParkTrespasser

A git-based fork of the Jurassic Park: Trespasser source code.
98 stars 24 forks source link

D3D mode: black sky near horizon #112

Open meekee7 opened 4 years ago

meekee7 commented 4 years ago

In D3D mode, the sky is just a thick black line near the horizon. otp-sky-horizon

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

For reference: this is what the sky horizon line looks like in OTP software mode: otp-software-sky-horizon

meekee7 commented 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.