Subgraphs and Material Functions - Advanced Materials - Episode 21

  Рет қаралды 4,497

Ben Cloward

Ben Cloward

Күн бұрын

In this tutorial video, I explain the benefits of using Subgraphs in Unity's Shader Graph and Material Functions in Unreal's Material Editor. Subgraphs and Material Functions make your shader more clear and readable, they make it easier to reuse parts of your graph, and they make building new shaders faster. You should use them!
Here's last week's video on creating Tempered Steel:
• Tempered Steel Shader ...
Here's the playlist for all of the videos in the series:
• Advanced Materials
Shader Book Recommendations
www.bencloward.com/resources_...
------------------------------
Theme Music
Peace in the Circuitry - Glitch Hop
teknoaxe.com/Link_Code_3.php?q...
Background Music
Speo - The Little Things
• The Little Things
#UnrealEngine #shadergraph #Unity

Пікірлер: 38
@ChrisCohen
@ChrisCohen Жыл бұрын
I love the way Ben starts every video like it's a children's story 😂 "Today children, we are going to learn how Mr Rabbit programmed his own shader using C++ and a raspberry pi!"
@BenCloward
@BenCloward Жыл бұрын
LOL!
@jacekfr3252
@jacekfr3252 Жыл бұрын
You are outstanding teacher, your videos are very valuable for me, thank you!
@3dtrip870
@3dtrip870 Жыл бұрын
Ben, Thank You! I am an artist, and these technical setup videos with clear explanation and thorough setup examples really help me make my work come to life in an efficient way. Again, Thank You!
@Ebani
@Ebani Жыл бұрын
You're doing god's work
@NopeSecret
@NopeSecret Жыл бұрын
Thank you so much for the continued shader tutorials. I will always say this. You are one of the best teachers on youtube and your tutorials are absolutely amazing. I have been watching your videos for a few years now and everything I know about shaders and most of what I know about texturing I have learned from you. Thank you for helping me learn how to use unity and unreal engine to create shaders to help build beautiful worlds I can use to express my creative side.
@Mia.m793
@Mia.m793 Жыл бұрын
Thank you for your outstanding work.
@user-qn5hu5rj6u
@user-qn5hu5rj6u Жыл бұрын
Mr. Cloward, sir you did great videos, I can tell it will be very useful even for a starter of CG like me, thanks for selfless sharing!
@devdev2088
@devdev2088 Жыл бұрын
good job dude!
@Michael_Barik
@Michael_Barik Жыл бұрын
Ben, Thank You!
@3tomke
@3tomke Жыл бұрын
Great video! Thank you!
@elpainto1
@elpainto1 Жыл бұрын
Great video! Getting organized and having a better understanding of what what the node systems can do is really powerful. I would be interested to also hear about how you manage vertex/interpolator operations in shader graph, and what some good uses might be.
@BenCloward
@BenCloward Жыл бұрын
Oh, that's a cool idea. Thanks, Diego!
@brunocandia9671
@brunocandia9671 7 ай бұрын
Thank you for sharing ! your knowledge, I wish you the best in your life !.
@antoniosuarez7881
@antoniosuarez7881 Жыл бұрын
thanks, grate explanation grate tutorial
@jeremyb2120
@jeremyb2120 Жыл бұрын
I watched 1-13 of the basic shader graph tutorials, as well others, and I haven't seen any on the GUI side of things. I'm having a little trouble adding inputs within Unity so that I can change things on the material in the inspector. If you could make a basic to in depth tutorial or series on adding GUI to the shaders, that'd be great! I might be able figure out how to add a albedo map value for the user to select a texture for, but what if I want to have a button on the Material that automatically adds all the other associated texture maps with a similar name. So for example, I add my "Rocks_diffuse" and then click a button and it auto adds all the other maps into their slots "Rocks_normal", "Rocks_height", "Rocks_metalic", and "Rocks_ao". Sometimes, it's a pain to add all the maps every time... and I wish I knew how to create better GUIs for shaders. I'm a big fan of your tutorials! I've learned so much in such a short time. I just recreated your parallax shader in Unity's URP; it's so neat to see and understand how it works! Thank you so much!
@seafoo246
@seafoo246 Жыл бұрын
Hey I love your vids, I wonder what would be your take on a Bottle Liquid VFX ? Best wishes.
@adamplechaty
@adamplechaty Жыл бұрын
Brilliant as always. How about material layers and materials blends after this? :)
@jhebadiasprunklefunk9243
@jhebadiasprunklefunk9243 Жыл бұрын
Hey Ben I was wondering if you're interested in going over UE5.2's new material functionality with their Substrate system? It essentially lets you author shader models in the material graph, I'd love to hear your input on it given the amount of hidden gems of info you know.
@BenCloward
@BenCloward Жыл бұрын
I am interested in it and I will cover it in the future, but not yet. It's a feature that they're still working on and I think it's going to change a bit in the next few months, so I don't want to make a video and then have it be out of date right away. In it's current form, it enables some really interesting effects and material types that haven't been possible to do before, but it also makes creating simple/basic materials harder and more complicated - especially for beginners. I'm hoping they can improve that before it's ready to be used.
@jhebadiasprunklefunk9243
@jhebadiasprunklefunk9243 Жыл бұрын
Ah yeah makes sense, well I look forward to then. Also I agree, SSSMFP instead of opacity isn't an easy learning curve... >_
@HomAxz
@HomAxz Ай бұрын
Ive been using Functions for some time but I wanted to know your thoughts on when to choose what input? I see you use Color as V3, but DetailTex is a T2d. Is it because there might be something packed into the alpha of the Detail Texture so it's better to use T2d input? If you end up plugging a texture that only uses RGB, is it more performant to put a V3 input instead? doesn't it matter because the same texture is sampled regardless?
@TheDesknight
@TheDesknight Жыл бұрын
Any way to add modifiable 'details' in our Unreal material functions ? , many Ue5 native nodes have them , but i cant seem to expose properties within my Material functions (like a simple switch to toogle betwwen default colors).
@BenCloward
@BenCloward Жыл бұрын
That's a good question! I haven't found a way to do that either.
@TheDesknight
@TheDesknight Жыл бұрын
@@BenCloward Welp if you didn't i definitly wont either. Maybe its possible in another type of graph abstraction alltogether.
@mojochin7004
@mojochin7004 Жыл бұрын
Do subgraphs allow more sampled textures? We have a system that allows multiple textures to be combined and output a single texture that is then applied to the material's base color. We've had to restrict the number of textures to be combined as there are errors when we go above 11-ish sampled textures in the shader. This is easily breached when you add in the multiple other textures that are required. If we can do the combining in a subgraph and free up textures in the shader it would be good. Or is there another way?
@BenCloward
@BenCloward Жыл бұрын
Subgraphs, don't fix that, but there is something that does. The limitation isn't the number of textures sampled, but rather the number of sampler states being used. You can fix this in Unity by creating a Sampler State node and plugging it into all of the your texture sampler nodes. In Unreal, select each of the texture sample nodes and set the Mode to Shared: Wrap. Doing this makes all of your texture sampler nodes share the same sampler and should allow you to sample more if you need to.
@mojochin7004
@mojochin7004 Жыл бұрын
After looking into it, it seems it is not possible like this but may need a multi-pass shader instead.
@mojochin7004
@mojochin7004 Жыл бұрын
@@BenCloward Thanks! Will look into it! Love the videos
@user-ro2hk5gu4f
@user-ro2hk5gu4f Жыл бұрын
When will the boss talk more about the UESubstrate new material system...
@BenCloward
@BenCloward Жыл бұрын
That's a good question. I'm waiting for it to be a little further along in development. It would be a waste for me to create videos about it now if they're just going to change it a bunch in the next couple of months. There are some kinda weird things about it that I'm hoping they'll improve as they move closer to a real release.
@afrikaansedude2525
@afrikaansedude2525 Жыл бұрын
Please do a grass shader 🥺🔥
@ruslandad365
@ruslandad365 Жыл бұрын
Страшна Вырубай
@BenCloward
@BenCloward Жыл бұрын
Калі ласка, раскажыце мне больш. Я хачу зразумець, што вам не падабаецца.
@ruslandad365
@ruslandad365 Жыл бұрын
@@BenCloward Не тот язык 🤣 Русский
@BenCloward
@BenCloward Жыл бұрын
@@ruslandad365 Извини. Я просто использую Google! Пожалуйста, расскажите мне больше. Я хочу понять, что тебе не нравится.
@ruslandad365
@ruslandad365 Жыл бұрын
@@BenCloward да все в порядке Просто мем такой есть на русскоговорящих просторах Означает что то очень сложное и не понятное И это нужно вырубить😁
@BenCloward
@BenCloward Жыл бұрын
@@ruslandad365 Хорошо, спасибо за объяснение! Мемы не переводятся.😆
Retroreflective Road Sign - Advanced Materials - Episode 22
29:08
Unreal Engine Materials in 6 Levels of Complexity
44:12
pwnisher
Рет қаралды 181 М.
Red❤️+Green💚=
00:38
ISSEI / いっせい
Рет қаралды 77 МЛН
THEY made a RAINBOW M&M 🤩😳 LeoNata family #shorts
00:49
LeoNata Family
Рет қаралды 42 МЛН
50 YouTubers Fight For $1,000,000
41:27
MrBeast
Рет қаралды 186 МЛН
I Melted Wood With Friction
8:44
The Action Lab
Рет қаралды 970 М.
Why are if statements in shaders heavily discouraged?
11:22
VoxelRifts
Рет қаралды 6 М.
Bricks and Stucco Shader - Advanced Materials - Episode 17
33:31
Ben Cloward
Рет қаралды 13 М.
80 Year Olds Share Advice for Younger Self
12:22
Sprouht
Рет қаралды 1,3 МЛН
When Your Game Is Bad But Your Optimisation Is Genius
8:52
Vercidium
Рет қаралды 1,4 МЛН
How Games Have Worked for 30 Years to Do Less Work
23:40
SimonDev
Рет қаралды 1,3 МЛН
Unreal Engine 5.2 is getting too real
3:03
Fireship
Рет қаралды 1,1 МЛН
Unreal Engine Just Changed Animation Forever
8:18
Smeaf
Рет қаралды 195 М.
Intuitive Material Building with the UI Material Lab | Inside Unreal
2:04:05
Why Unreal Engine 5.4 is a Game Changer
12:46
Unreal Sensei
Рет қаралды 1,1 МЛН
Red❤️+Green💚=
00:38
ISSEI / いっせい
Рет қаралды 77 МЛН