Skip to content

Texture blurriness in SubViewportContainer #103015

Open
@AdamLearns

Description

Tested versions

  • Reproducible in v4.4.beta1.mono.official [d33da79d3]

System information

macOS Sonoma 14.6.1 (23G93)

Issue description

I see a lot of similar issues that were filed already, but none that seem to still be open that cover the scenario I'm in:

The issue is that a TextureRect inside of a SubViewportContainer looks blurry while a TextureRect outside of that container looks crisp. Same thing with a Sprite2D.

Steps to reproduce

Set up this scene hierarchy:

  • Node
    • SubViewportContainer
      • SubViewport
        • TextureRect with size 64, 64
    • CanvasLayer
      • TextureRect with size 64, 64

...and that's it. Even in the editor, it's apparent that the texture in the SubViewportContainer is blurry:

Image

I originally thought this was caused by setting ContentScaleFactor, which is why the minimal repro has buttons to change that. I left the buttons in the repro since it's much more obvious at higher scale factors.

Minimal reproduction project (MRP)

ContentScaleFactorRepro.zip

Activity

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    • Status

      For team assessment

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions