Yellow-Dog-Man / Resonite-Issues

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

PBS + Toon SortingOrder Not Rendering Correctly #642

Open lxw404 opened 12 months ago

lxw404 commented 12 months ago

Describe the bug?

Currently, if you utilize SortingOrder to stack a PBS_Metallic or PBS_Specular material, the order is handled incorrectly/inconsistently. This is revealed by looking at the stacked materials in a mirror.

To Reproduce

This example is shown here: resrec:///U-LuxKitty/R-B514308EADA659F808716D5E82E95BB4AD78EEF2512568DA7F91594FC5E14D2C

Observe that the results of sorting are completely different in the mirror.

Expected behavior

The sorting order should be applied correctly across contexts. Either the sort order is wrong in the normal rendering context, or it is wrong in the mirror context.

Screenshots

Resonite_iu0f14yUfI

(No this is not the new RenderMaterialOverride)

Resonite Version Number

2023.11.11.1231

What Platforms does this occur on?

Windows

What headset if any do you use?

Desktop, Valve Index

Log Files

PBS_Toon Sorting - 2023.11.11.1231 - 2023-11-11 19_40_33.log

Additional Context

Possibly related to: https://github.com/Yellow-Dog-Man/Resonite-Issues/issues/641

Reporters

LuxKitty

ModernBalloonie commented 12 months ago

This could be related to the mirror being forward rendered? Idk. Actually, try checking it out in a camera.

lxw404 commented 12 months ago

The toon material renders above PBS in a camera. The weird thing is, other materials such as any other PBS material, put in place of Xiexe with the same exact SortingOrder render correctly (below the original PBS) in both normal and mirrors.

shiftyscales commented 8 months ago

Seeking feedback from @Geenz.