Skip to content

Vulkan: 2D msaa does not AA clipped children #66005

@insomniacUNDERSCORElemon

Description

Godot version

4.0 Beta 1

System information

Shouldn't be system specific. Linux, Vulkan, 1050 Ti nvidia driver v515.65.01

Issue description

The MSAA, it does nothing for the clipped goggles. Unclipped is on the left for comparison, and the zoomed squares to better show the AA:

mrp_screenshot

@Geometror

The ghosting, darkening, and blending on the clipped version are unrelated to MSAA. See #49198

clip_children might be better done in some other technical way (one that does not block MSAA hopefully) but I don't know enough to say.

Steps to reproduce

  1. Set up 2D project
  2. Enable 2D MSAA x8 in project settings
  3. Create any canvasitem node (sprite or polygon)
  4. Create a polygon (or line) node as a child of previous step, enable clip_children on said parent
  5. Run scene, the parent will have AA but the child will not

Note on step 4: I imagine a sprite could have the same issue, but polygons are an easier way to create something that needs AA (and they need AA always, whereas sprites can be smoothed if you can use transparency).

Minimal reproduction project

clip_msaa_mrp.zip

(screenshot above is what the MRP is)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions