Skip to content

Conversation

adrien-de-tocqueville
Copy link
Contributor

@adrien-de-tocqueville adrien-de-tocqueville commented Feb 23, 2021

Purpose of this PR

fix for https://fogbugz.unity3d.com/f/cases/1316568/

This PR fix the material debug display for decals (for normal, albedo, ...) on transparent/opaque objects and in forward/deferred by binding the decal buffers to the shaders
This requires computing the gpu light list during debug display for decals on transparent objects

It also fixes a wrong label on decal projector mask opacity channel under smoothness (which was labelled normal opacity channel)

And it also fixes the mask opacity option on normal when decal only affects normal (the mask opacity slider wasn't taken into account for the global fade factor computation)


Testing status

tested the repro steps of the fogbug

@github-actions
Copy link

It appears that you made a non-draft PR!
Please convert your PR to draft (button on the right side of the page)
and cancel any jobs that started on Yamato.
See the PR template for more information.
Thank you!

@sebastienlagarde
Copy link
Contributor

Added @JulienIgnace-Unity for RG check

@remi-chapelain remi-chapelain requested a review from a team February 23, 2021 14:14
Copy link
Contributor

@remi-chapelain remi-chapelain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked the 2 others issues that were fixed in this PR in another project.
The label and the mask opacity for normal alpha source !
nice find.

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