cosmoscout / cosmoscout-vr

:milky_way: A virtual universe which lets you explore, analyze and present huge planetary datasets and large simulation data in real-time.
Other
354 stars 27 forks source link

Add a GLSL compiler to improve Shader Management #258

Open JonasGilg opened 3 years ago

JonasGilg commented 3 years ago

The Problem

Currently shaders are being build using the compiler of the GPU driver. This leads to missing features and inconsistencies. We are mostly missing #include and proper #define functionality. To circumvent this problem, we currently build the shaders at runtime by stitching a string together.

The Solution

We can use a library, that compiles shaders with all required features. There are two contenders:

Both libraries should be fulfilling our needs and are under active development. glslang has a C++ interface, for which I do prefer it.

Any opinions?