Skip to content

Added sample shading to fix AA on specular surfaces. - #776

Open
gapys-krzysztof wants to merge 1 commit into
dhewm:masterfrom
gapys-krzysztof:aafix
Open

Added sample shading to fix AA on specular surfaces.#776
gapys-krzysztof wants to merge 1 commit into
dhewm:masterfrom
gapys-krzysztof:aafix

Conversation

@gapys-krzysztof

@gapys-krzysztof gapys-krzysztof commented Aug 23, 2026

Copy link
Copy Markdown

This PR addresses #753 the issue of AntiAliasing not covering specular surfaces level, to fights this GL_ARB_sample_shading is enabled and controlled/disabled via a custom variable

Sample shading disabled/set to 0
sample_0f_disabled

Sample shading enabled, set to 1
sample_1 0f

Sample shading increases the performance impact - it is fine on my GTX1080, but in case someone has such issues, you can set the var to some inbetween to balance quality to performance. Here's it set to 0.5f
sample0 5f

The issue is not present with skip specular var enabled, but here's a pic with it off just in case, sample shading also disabled
specular_off_aa

Tested on Linux only

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant