Using Custom HLSL Code - Advanced Materials - Episode 24 @BenCloward
Using Custom HLSL Code - Advanced Materials - Episode 24  @BenCloward
Uploaded May 2023 | Updated November 2026, 2 hours 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
Using Custom HLSL Code - Advanced Materials - Episode 24Animated 80s Sunset Pattern - Procedural Shapes and Patterns - Episode 10Terrain & Landscape Basics - Terrain Shaders - Episode 11Procedural Brick Color Shader - Advanced Materials - Episode 29Supporting Multiple Lights - Custom Lighting Models - Episode 7Vertex Displacement - Advanced Materials - Episode 35Intro To Procedural Shapes and Patterns - Episode 1Substrate Translucency - Unreal Substrate - Episode 4Triplanar Projection - Shader Graph Basics - Episode 28Metal Shader - Advanced Materials - Episode 7Triplanar Projection Improvements - Shader Graph Basics - Episode 29Adding Rocks With Hierarchical Generation - Procedural Content Generation (PCG) - Episode 9
Ben Cloward |

Using Custom HLSL Code - Advanced Materials - Episode 24

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER