Open Ali-RS opened 1 year ago
99% sure that setting alphaDiscardThreshold to 0 is equivalent of disabling it... ie: any of the in-shader ifdefs will be false and so on.
I just followed up based on your comment below that said it is an oversight to not "clear" it.
https://hub.jmonkeyengine.org/t/lemur-iconcomponent-issue-with-transparent-icons/45257/10?u=ali_rs
I do not have much knowledge about shaders (but 0
meaning "not-defined" sounds weird to me though) but anyway If you think these changes are not required then please feel free to close the PR.
By the way, thanks for the response
Ahah. So I'm just trying to be thorough. I'll try to incorporate this the next time I do a pre-release pass. Thanks for the contribution.
This should properly clean up the alpha discard param in QuadBackgroundComponent and IconComponent when alpha discard is disabled (is set to 0).