Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Rendering issue in URP when render scale is not equal to 1.0 #72

Open
kukumberman opened this issue Nov 20, 2024 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@kukumberman
Copy link

Describe the bug
Unexpected behaviour of rendering when value of renderScale in UniversalRenderPipelineAsset is not equal to 1.0

Version/Branch of UImGui:
Version: 5.0.0

Unity Version
2022.3.22f1

Render pipeline (HDRP / URP / Built-in)
URP

Expected behavior
Properly render elements regardless of renderScale

Screenshots

2024-11-20.23-50-35.mp4
2024-11-20.23-51-34.mp4

Additional context
I tried to submit current renderScale at the beginning of OnLayout callback but issue persists, you can see result in 2nd video:

var scale = Vector2.one * _urpAsset.renderScale;
var io = ImGui.GetIO();
io.NativePtr->DisplayFramebufferScale = scale;
@kukumberman kukumberman added the bug Something isn't working label Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants