Blend Material Layers With Vertex Paint | Unreal Engine 5

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello everyone today I have a super fast tutorial for you how to set up vertex painting with a layered material let's get into it now quick disclaimer vertex painting does not work with nanite so just keep that in mind when you're using vertex painting there's going to be a super fast tutorial so you just make a new material of course for your base as always and you make your material layer and material layer blend in your main material you open that up set it to be use material attributes and grab material attribute layers you plug that in hit save that's all you need for here for the material layer this is where you put in all your information for the demo all I'm going to do is expose a material base color and I'm going to get a texture sample parameter nice easy call it base color plug it in and let's use the default texture as the base so that's all we really need for this because the main thing is the material area blend which is also very simple so in here we're going to give it a simple parameter static switch parameter and we'll just call it vertex paint so that way we can turn on vertex paint on and off I'm going to give it a group called controls and we're going to put controls maybe right on top and make sure it's on top we're going to give us a priority of 10. then holding s and left clicking get a scalar parameter and this is just going to be our layer opacity so this is is where we can control just the overall opacity of the layer if we're not using vertex paint of course here you can always chain in more things if you want to blend things together but for the vertex paint itself it really is as simple as getting vertex color which is where you have all your vertex information I believe this is RGB only so we append the alpha Channel and then we do a channel mask parameter so that way we can say which channel do we want to use for it so we're going to call it vertex color Channel and we're going to put it in a group called vertex color and then it's as simple as plugging it in of course here right here is where you put any kind of controls you'd want maybe contrast offsets any kind of smoothing whatever you want to do in terms of modifying the actual paint you put it here but this is all we need and now let's try it out so I'm going to go ahead and make a simple sphere I'm going to grab our base and create a material instance of it and apply it to our material and then we're going to open it up and plug in our material layer in here and I'm going to make a few more layers and I'm going to just plug in our material layers and material layer Blends and I'm going to just grab some base textures that I have got on Mega scans and just populate them for each of the layers so we can see the actual difference between them and finally the way we control what goes where is we just set the blend assets under controls we enable vertex color and under vertex color we say the channel so for example this will be the red Channel under this one we can say this is going to be the green Channel and this will be the blue Channel you can of course do alpha as well or if you don't want to use vertex paint if you turn that off you have your layer opacity so we of course see everything right now on the sphere we just go under mesh paint under paint I'm going to swap this to be main as the Black and I'm just going to go with everything selected I'm going to fill it all with black and so we see the base underlying layer the background and now I can go ahead and paint with the right Channel by swapping these around making it white and now I can just go ahead and paint with my red Channel and I can want I can play with the green it's a little bit larger increase the strength and same thing with the blue and just like that you can use vertex paint to blend your different layers any way you want based on your object as a reminder vertex pane does not work on nanite and of course you cannot if I paint something in blue because it's a layered setup and then I go to Red it is technically painting it in red but because the blue layer in my case is on top of the red I would need to remove the Blue by holding shift and then I can see the red Channel below that is as simple as that I hope you guys enjoyed if you have any other suggestions of tutorials you want to see for a layered setup or otherwise please let me know in the comments below and I'll see you guys next time take care bye
Info
Channel: Procedural Minds
Views: 2,140
Rating: undefined out of 5
Keywords:
Id: FF5HZ6Cq8GY
Channel Id: undefined
Length: 4min 30sec (270 seconds)
Published: Sun Aug 13 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.