Merge pull request #108206 from Calinou/transparent-viewport-no-ssr-sss-dof

Disable unsupported SSR, SSS, DoF on transparent viewports
This commit is contained in:
Thaddeus Crews 2025-09-16 11:44:48 -05:00
commit 27a3f0eb8d
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC
6 changed files with 25 additions and 4 deletions

View file

@ -452,6 +452,7 @@
</member>
<member name="transparent_bg" type="bool" setter="set_transparent_background" getter="has_transparent_background" default="false">
If [code]true[/code], the viewport should render its background as transparent.
[b]Note:[/b] Due to technical limitations, certain rendering features are disabled when a viewport has a transparent background. This currently applies to screen-space reflections, subsurface scattering, and depth of field.
</member>
<member name="use_debanding" type="bool" setter="set_use_debanding" getter="is_using_debanding" default="false">
If [code]true[/code], uses a fast post-processing filter to make banding significantly less visible. If [member use_hdr_2d] is [code]false[/code], 2D rendering is [i]not[/i] affected by debanding unless the [member Environment.background_mode] is [constant Environment.BG_CANVAS]. If [member use_hdr_2d] is [code]true[/code], debanding will only be applied if this is the root [Viewport] and will affect all 2D and 3D rendering, including canvas items.