Yellow-Dog-Man / Resonite-Issues

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

PBS_Metallic Shaders Exhibit Channel Packing Inconsistency #2218

Open Epimonster opened 1 month ago

Epimonster commented 1 month ago

Describe the bug?

Only PBS_Triplanar_Metallic and PBS_Metallic sample ambient occlusion from the green channel, all the other variants sample it from the red channel instead.

To Reproduce

Using a packed metallic map of the following standard:

R - Metallic G - Ambient Occlusion A - Smoothness

Place it into both the occlusion and the metallicmap slots. The ambient occlsuion will only properly render on PBS_Triplanar_Metallic and PBS_Metallic and will fail to display on the other ones.

I included an example map from the Gas Station you can use.

Expected behavior

All PBS_Metallic variants and Xixie toon should sample ambient occlusion from the green channel.

For clarity's sake the following materials do not sample ambient occlusion from the green channel of the metallic map:

Screenshots

Demonstration: 2024-06-02 23 31 33

Demonstration Map: Coporate_Floor_metallicmap

Resonite Version Number

2024.5.31.202

What Platforms does this occur on?

Windows, Linux

What headset if any do you use?

Desktop

Log Files

BEASTMANS-BOON - 2024.5.31.202 - 2024-06-02 19_02_02.log

Additional Context

No response

Reporters

Gareth48, Raidriar

shiftyscales commented 1 month ago

I believe this would be implicitly covered under the shader consolidation #1577 - but seeking input from @Geenz.