Awesome thanks for that. I don't have access at the moment to UE4 as I'm away for a bit, but I assume you can use layered materials with deferred decals in UE4? For example the deferred decal layer would be providing the normal information and then I can alpha mask another material on top with all of my texture and colour…
Goal: Selective Blending Ultimately, what I want to achieve is the ability to selectively blend different channels of the decal with the underlying material. Examples: A metal bolt overwrites roughness, normal, metalness (usually) and color (in most cases) values. A crack might overwrite normal information and maybe…
There's been support for POM for a while, my dude. Just add a ParallaxOcclusionMapping node (you don't need that weird workaround with projected UVs at all) and you're pretty much set to go. Here's an example of it in action (not the prettiest just a quick test I did a while back): You can see the simple shader setup for…
@Johnnynapalmsc You could probably do that, but usually you wouldn't use deferred decals at all for this. You would do all the blending in your material. A performant way to blend is based on vertex color, where your floating decal planes are identified by their color. From here on out I'm going to use the word "decal" to…
So, there's good news and bad news. The good news is that I got selective blending to work with regular decals as well, and the performance impact is pretty minimal. The bad news is that the workflow differs a little from dbuffer decals and both implementations don't have feature parity. The most severe limitation is that…
Optimization There are 3 areas of optimization I want to talk about. 1. Material pins: There are now two pins that deal with decal opacity: Opacity & MultiOpacity. How do they interact with each other? I decided to make it like this: If MultiOpacity is connected, the opacity will be read from this attribute, otherwise the…
Looks like I'm done. The two screenshots below show the same decal before and after implementing multi opacity. In the first image opacity is 1 for the whole material. That's how it looks when the opacity pin is just left alone. The second image shows multi oacity applied, providing different opacity values for each…
@Menchen Thanks! I'm afraid what you suggest is still not enough. Not only because of the examples I posted above and the limitations you mention, but also because of the fact that opacity still has to determine the weighting of the blend. Let's say I have an opacity of 0 and the decal normal blends with the underlying…