Skip to content

renderer: use legacy weight calculation for GLSL 1.20, fix #490 ref #470 #479#491

Closed
illwieckz wants to merge 1 commit intoDaemonEngine:masterfrom
illwieckz:glsl120
Closed

renderer: use legacy weight calculation for GLSL 1.20, fix #490 ref #470 #479#491
illwieckz wants to merge 1 commit intoDaemonEngine:masterfrom
illwieckz:glsl120

Conversation

@illwieckz
Copy link
Copy Markdown
Member

Code introduced in #479 fixes bug described in #470 but broke compatibility with GLSL 1.20 as described in #490. This commit brings back the legacy weight calculation code as a fallback when running GLSL 1.20 GPUs (OpenGL 2.1). The new code is still used with newer GPUs as expected.

…ne#490 ref DaemonEngine#470 DaemonEngine#479

Code introduced in DaemonEngine#479 fixes bug described in DaemonEngine#470 but broke compatibility
with GLSL 1.20 as described in DaemonEngine#490. This commit brings back the legacy weight
calculation code as a fallback when running GLSL 1.20 GPUs (OpenGL 2.1). The new
code is still used with newer GPUs as expected.
@slipher
Copy link
Copy Markdown
Member

slipher commented Jul 1, 2021

I think we could find still other ways to express the calculation, without entering the unpleasant state of multiple implementations.

@illwieckz
Copy link
Copy Markdown
Member Author

I'm not that against multiple implementations if they are rare and short, but what annoys me the most is that it adds two tests in CPU code we can avoid (on GPU code it's pre-processed anyway).

@slipher
Copy link
Copy Markdown
Member

slipher commented Jul 6, 2021

Superseded by #498.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants