X Tutup
Skip to content

Disable unsupported SSR, SSS, DoF on transparent viewports#108206

Merged
Repiteo merged 1 commit intogodotengine:masterfrom
Calinou:transparent-viewport-no-ssr-sss-dof
Sep 16, 2025
Merged

Disable unsupported SSR, SSS, DoF on transparent viewports#108206
Repiteo merged 1 commit intogodotengine:masterfrom
Calinou:transparent-viewport-no-ssr-sss-dof

Conversation

@Calinou
Copy link
Member

@Calinou Calinou commented Jul 2, 2025

For technical reasons, transparent viewports cannot support screen-space reflections, subsurface scattering and depth of field. Previously, enabling any of these would turn transparent viewports invisible.

Preview

image

@Calinou Calinou added this to the 4.5 milestone Jul 2, 2025
@Calinou Calinou requested review from a team as code owners July 2, 2025 15:58
@Calinou Calinou added bug topic:rendering documentation topic:3d cherrypick:4.4 Considered for cherry-picking into a future 4.4.x release labels Jul 2, 2025
using_sss = false;
}

if ((using_sss || ce_needs_separate_specular) && !using_separate_specular) {
Copy link
Member Author

@Calinou Calinou Jul 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This check makes me curious: are all compositor effects that need separate specular broken when using a transparent background? If so, we should add a dedicated warning here when such an effect is used.

@Repiteo Repiteo modified the milestones: 4.5, 4.6 Sep 10, 2025
@Repiteo Repiteo added the cherrypick:4.5 Considered for cherry-picking into a future 4.5.x release label Sep 10, 2025
For technical reasons, transparent viewports cannot support
screen-space reflections, subsurface scattering and depth of field.
Previously, enabling any of these would turn transparent viewports
invisible.
@Calinou Calinou force-pushed the transparent-viewport-no-ssr-sss-dof branch from 3b7d318 to 1c62ba4 Compare September 11, 2025 12:59
@clayjohn clayjohn removed the cherrypick:4.4 Considered for cherry-picking into a future 4.4.x release label Sep 16, 2025
@Repiteo Repiteo merged commit 27a3f0e into godotengine:master Sep 16, 2025
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Sep 16, 2025

Thanks!

ProfessorOctopus pushed a commit to ProfessorOctopus/godot that referenced this pull request Sep 17, 2025
…rt-no-ssr-sss-dof

Disable unsupported SSR, SSS, DoF on transparent viewports
@Repiteo
Copy link
Contributor

Repiteo commented Sep 30, 2025

Cherry-picked to 4.5

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.

SSR causes opaque meshes inside a subviewport with transparent bg to get invisible

4 participants

X Tutup