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

Self-modulate transparency is applied to clipped children #91499

Open
derkork opened this issue May 3, 2024 · 0 comments
Open

Self-modulate transparency is applied to clipped children #91499

derkork opened this issue May 3, 2024 · 0 comments

Comments

@derkork
Copy link

derkork commented May 3, 2024

Tested versions

v4.2.2.stable.mono.official [15073af]

System information

Godot v4.2.2.stable.mono - Windows 10.0.22631 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 4080 (NVIDIA; 31.0.15.5222) - AMD Ryzen 9 7950X3D 16-Core Processor (32 Threads)

Issue description

When you have a Sprite node with self-modulate enabled on it and set it up to clip its children, then the transparency of the self-modulate is applied to the children.

2024-05-03_07-52-51.mp4

In the video you can see how I set the parent's self modulate to red and reduce its alpha. Once I enable the clipping, the reduced alpha is also applied to the child nodes, but I think it should not as self-modulate should not affect child nodes.

Steps to reproduce

  1. Create two sprites, make one the child of the other.
  2. Change the self-modulate of the parent to some translucent color.
  3. Change the clip-children setting of the parent to "clip + draw"

Minimal reproduction project (MRP)

N/A

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

No branches or pull requests

3 participants