Uploaded May 2023 | Updated September 2026, 2 weeks ago
In this tutorial video , I show how to use the Custom node in the Unreal Material Editor and the Custom Function node in Unity's Shader Graph to add HLSL code to your graph. You may want to do this to reduce the amount of spaghetti in your graph, to use existing code functions, or to get around the limitations of node-based shader creation. Writing shaders in HLSL is a very deep topic and I only just scratch the surface here.
Here's the code we used in this video:
bencloward.com/youtube/codeunreal.txt
bencloward.com/youtube/codeunity.txt
Here are some sites with more information on writing shaders in code:
thebookofshaders.com
learn.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-graphics-hlsl-reference
youtube.com/playlist?list=PL78XDi0TS4lEDHfahG4ddRwZ3AUrOIYcq
------------------------------------
Here's last week's video on Local Volumetric Fog:
youtu.be/En-VjBjto_U
Here's the playlist for all of the videos in the series:
youtube.com/playlist?list=PL78XDi0TS4lGqHdLQGR2GHne85i9PebbN
Shader Book Recommendations
bencloward.com/resources_books.shtml
------------------------------
Theme Music
Peace in the Circuitry - Glitch Hop
teknoaxe.com/Link_Code_3.php?q=1526
Background Music
Speo - The Little Things
youtube.com/watch?v=aoc9v_TRBqc
#UnrealEngine #shadergraph #Unity
In this tutorial video , I show how to use the Custom node in the Unreal Material Editor and the Custom Function node in Unity's Shader Graph to add HLSL code to your graph. You may want to do this to reduce the amount of spaghetti in your graph, to use existing code functions, or to get around the limitations of node-based shader creation. Writing shaders in HLSL is a very deep topic and I only just scratch the surface here.
Here's the code we used in this video:
bencloward.com/youtube/codeunreal.txt
bencloward.com/youtube/codeunity.txt
Here are some sites with more information on writing shaders in code:
thebookofshaders.com
learn.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-graphics-hlsl-reference
youtube.com/playlist?list=PL78XDi0TS4lEDHfahG4ddRwZ3AUrOIYcq
------------------------------------
Here's last week's video on Local Volumetric Fog:
youtu.be/En-VjBjto_U
Here's the playlist for all of the videos in the series:
youtube.com/playlist?list=PL78XDi0TS4lGqHdLQGR2GHne85i9PebbN
Shader Book Recommendations
bencloward.com/resources_books.shtml
------------------------------
Theme Music
Peace in the Circuitry - Glitch Hop
teknoaxe.com/Link_Code_3.php?q=1526
Background Music
Speo - The Little Things
youtube.com/watch?v=aoc9v_TRBqc
#UnrealEngine #shadergraph #Unity










