3Dickulus / FragM

Derived from https://github.com/Syntopia/Fragmentarium/
GNU General Public License v3.0
344 stars 30 forks source link

Internal vs GLSL version/profile handling #152

Closed 3Dickulus closed 3 years ago

3Dickulus commented 3 years ago

Describe the bug Does not quite handle GLSL version/profile requests properly

To Reproduce Load the keyframes tutorial use #version <int> [core|compatibility] as the first line in user frag with different combinations build program see errors

Expected behavior FragM successfully adapts to legacy vs modern when running under none|core|compatibility profiles

Desktop:

Additional context The current scheme for detection of version and profile in fragment source is naive, need to refactor to cover as many profile and versions as possible 110 - 150, 300es 320es, 330 400-460 core WIP minimal and relatively simple changes to MathUtils.frag DE-Raytracer.frag 3D.frag and BufferShader.frag and a few internal adjustments, some success with adaptive legacy, 300 es, 330 core and 450 core.

3Dickulus commented 3 years ago

see 1ea26f7b