REGoth-project / REGoth

OpenSource-Reimplementation of the zEngine, used by the game "Gothic"
GNU General Public License v3.0
630 stars 63 forks source link

Sky textures #285

Closed ataulien closed 6 years ago

ataulien commented 6 years ago

Added rendering of the Sky-Dome in G2 and the Sky-Plane for G1.

ataulien commented 6 years ago

Should be working now.

markusobi commented 6 years ago

I fixed some compile errors related to the bgfx update. Now the sky is completely greyscale (I see clouds, but no colors) in G1 & G2 Also the program crashes in RenderSystem::destroyShaders() when exiting the game: REGoth/lib/bgfx-cmake/bgfx/src/bgfx_p.h (3408): BGFX CHECK Invalid handle. destroyProgram handle: 65535 (max 512)

Might be due to shaders not copied to right location?

ataulien commented 6 years ago

Seems like the shaders haven't been loaded. The default bgfx-shaders seem to turn everything red-ish/gray.

This is probably caused by the shader-format being outdated since master moved to a new bgfx version. I'll have a look at it!

ataulien commented 6 years ago

I could reproduce the issue and fixed it by recompiling all shaders for the new bgfx version.

For some reason the commit doesn't show up here though...

Kukunin commented 6 years ago

I re-run test, and it made PR green

ataulien commented 6 years ago

Then someone please merge it :)