mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Disable unsupported SSR, SSS, DoF on transparent viewports
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.
This commit is contained in:
parent
efb40c1524
commit
1c62ba40b7
6 changed files with 25 additions and 4 deletions
|
|
@ -442,6 +442,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 in 3D. 2D rendering is [i]not[/i] affected by debanding unless the [member Environment.background_mode] is [constant Environment.BG_CANVAS].
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue