Skip to content

[4.4.dev3] Forward+ Vertex Lighting clipping on the bottom of viewport/camera/screen for some resolutions #98440

Open
@Momonyaro

Description

@Momonyaro

Tested versions

  • reproducable in v4.4.dev3.official [f4af820]

System information

Linux (Zorin OS) - Godot v4.4.dev3.official [f4af820] - Vulkan (Forward+)

Issue description

When trying the new vertex lighting I noticed an issue with the light clipping along the bottom of my screen.
I have been trying to find out the cause and the only real noticable factor is that if I set the resolution of the game to match the project settings viewport width/height, the clipping dissapears.

Here is a quick video I took, showing the "clipping" that I'm seeing: https://youtu.be/lCEZt4iT70U

Of course I'm also expecting that maybe it's unique to linux but I'm hoping that it's not a significant factor 🤞

Steps to reproduce

Below are the specific lines that I use to change the resolution within my settings menu.
To reproduce, set the project viewport size to something like "1920x1080" and then use the lines below to set it to something else like "2560x1440" or "1280x720"

get_window().set_size(OPTION_LIST_[currentValue])
get_viewport().set_size(OPTION_LIST_[currentValue])

Hope this helps, I am of course here for further assistance.

Minimal reproduction project (MRP)

Here is a small test project I threw together: https://github.com/Momonyaro/vertex-lit-issue
There was another issue on my end with the settings menu, making it a bit flakey but it should help show the effect when you play around with the fullscreen/resolution toggle

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions