Yellow-Dog-Man / Resonite-Issues

Issue repository for Resonite.
https://resonite.com
141 stars 2 forks source link

PBS_DUALSIDEDMETALIC uses the Red channel in the Metalic for alpha? #2426

Open KyuVulpes opened 5 months ago

KyuVulpes commented 5 months ago

Describe the bug?

While working on a model, I was using the Dual Sided Metallic. However, I noticed the alpha wasn't changing with the albedo color's alpha. When I spun it out into a sphere I noticed the non-red parts of the metallic map were the ones obeying the alpha from albedo color. When I inverted the red channel on the metallic map, the transparent part of the material sphere changed with the red channel. This doesn't seem to be correct as the Wiki states for PBS Metallic that the red is metallic. It makes no sense that the metallic would also be used as alpha. And while I get that the PBS Dual Sided Metallic isn't the same as the PBS Metallic, they should ideally behave the same way when it comes to using textures.

I tried to see if this happens in different worlds and it does. It seems as if there is something going on at the shader level that is causing this issue.

To Reproduce

Set the PBS Dual Sided Metallic Alpha Handle to Alpha Blend, and then modify the red channel.

Expected behavior

I expected the alpha to be controlled by the Albedo color/texture, not by the metallic texture.

Screenshots

Normal Red Channel: 2024-06-30 07 42 59 20240630032710_1

Inverted Red Channel: 2024-06-30 07 43 40 20240630032736_1

Resonite Version Number

2024.6.25.1149

What Platforms does this occur on?

Windows

What headset if any do you use?

Valve Index

Log Files

GAMING-PC - 2024.6.25.1149 - 2024-06-30 03_24_25.log

Additional Context

No response

Reporters

Hauskeepang Hikari Akimori Kyu Vulpes

shiftyscales commented 5 months ago

Seeking input from @Geenz.