Ben Cloward
Ben Cloward
  • Video 60
  • Views 1 292 087
Triplanar Projection Improvements - Shader Graph Basics - Episode 29
In this shader tutorial, we add the finishing touches to our triplanar projection shader in Unreal 5 and Unity - including ensuring that the projection is flipped and rotated correctly, and that it doesn't invert on the backside of each projection. We also turn it into a material function in Unreal and a subgraph in Unity - so we can use it as a single node in future shaders.

Here are each of the previous videos in our triplanar series so far:
26 - thexvid.com/video/Rm4ubzc-6Q4/video.html - texture projection
27 - thexvid.com/video/HKSIxFnsHuk/video.html - direction masks
28 - thexvid.com/video/sjpszGetM40/video.html - basic triplanar projection

And here's the playlist for the whole series:
t...
Views: 1 609

Video

Triplanar Projection - Shader Graph Basics - Episode 28
Views 2.5K21 day ago
In this shader tutorial, we create a shader that projects textures from the top, front, and side - and blend between them using the directional masks we created in last week's video. Triplanar projection allows you to texture objects without any UV coordinates. Here's last week's video that covers directional masks: thexvid.com/video/HKSIxFnsHuk/video.html And here's the previous week's video t...
Direction Masks - Shader Graph Basics - Episode 27
Views 2.3KMonth ago
Direction Masks - Shader Graph Basics - Episode 27 In this shader tutorial, we create directional masks using world or object space normals. We then use the mask to hide areas of our texture projection that are stretched. Next week we'll expand on this technique to create triplanar projection. Here's last week's video that covers uses for position data - including texture projection: thexvid.co...
Using Position Data - Shader Graph Basics - Episode 26
Views 2.4KMonth ago
In this shader tutorial, I explain the different types of position data that are available to bring in to your shader (object position, vertex position, pixel position) and then we take a look at 3 examples of how to use position data. We use position data to apply a dark-to-light gradient to our model, to create a location-specific mask for our model, and to project textures onto our model in ...
Swizzle & Channel Manipulation - Shader Graph Basics - Episode 25
Views 1.5KMonth ago
In this shader tutorial, I show how to swap, rearrange, drop, and append channels in Unreal Engine and Unity. I compare and contrast methods between the two engines and show the strengths and weaknesses of each with regards to channel manipulation. Here's last week's video that explains Reflection and Refraction Vectors: thexvid.com/video/TNGNtVhCGvs/video.html And here's the playlist for the w...
Reflection and Refraction Vectors - Shader Graph Basics - Episode 24
Views 2.2KMonth ago
In this shader tutorial, I explain what reflection and refraction vectors are, and then I show how to create and use them in shader in Unreal and Unity. Here's last week's video that explains advanced channel packing for textures: thexvid.com/video/m5bP-xc6Sgs/video.html And here's the playlist for the whole series: thexvid.com/p/PL78XDi0TS4lEBWa2Hpzg2SRC5njCcKydl Theme Music Peace in the Circu...
Advanced Channel Packing - Shader Graph Basics - Episode 23
Views 4.9K2 months ago
In this shader tutorial, I show an advanced technique for packing data into texture channels that allows you to represent all of the texture data needed for a material in just two texture samples. Using this method saves both texture memory and performance, but since you're packing non-normal data in with the normal map, you do lose a little bit of quality in the normal. It also requires doing ...
Shader Performance Measurement Part 2 - Shader Graph Basics - Episode 22
Views 2.2K2 months ago
In this shader tutorial, I show the most accurate way to measure shader performance with Unreal 5 and Unity - by running the shader on the target hardware. First I show how to create a very simple test scene with just a camera pointed at a flat plane with the shader applied. Then I show how to build the scene so it can run outside the editor. And finally, we run the scene and measure how long i...
Shader Performance Measurement - Shader Graph Basics - Episode 21
Views 4.4K2 months ago
In this shader tutorial, I explain 3 reasons why instruction count is an unreliable method of judging the performance of a shader. In order to explain this, I also show how the shader graph gets translated into HLSL code, the code gets compiled to assembly language instructions, and then the graphics driver translates the assembly language into commands that can be executed on the specific grap...
Power - Shader Graph Basics - Episode 20
Views 1.8K2 months ago
In this shader tutorial, I explain the math behind the power node in Unreal Engine and Unity. Then I show three practical ways to use the power node in a shader - including adjusting the contrast of a value or color, controlling the appearance of the Fresnel effect, and applying or removing gamma correction from a texture. I also show a method for optimizing a power operation in some cases. An ...
Sine and Cosine - Shader Graph Basics - Episode 19
Views 2.2K2 months ago
In this shader tutorial, I explain how the sine and cosine functions work and then show 4 shader examples for how to use sine and cosine in Unreal and Unity - including a value that flashes on and off, a bouncing ball, water ripples, and rotating UVs. The amazing animated illustration of sine and cosine was created by Freya Holmér. Check out here TheXvid channel here: thexvid.com/user/Acegikm0 ...
Derivatives DDX DDY - Shader Graph Basics - Episode 18
Views 4.2K3 months ago
In this shader tutorial, I explain how the DDX and DDY nodes work and then I show three examples of how to use them in Unreal5 and Unity. I show how to use the DDX and DDY nodes to fix weird UV seams, generate face normals, and convert a bump map into a normal. Here's last week's video on the Ceiling, Floor, and Round nodes: thexvid.com/video/wHtkiaCOKiI/video.html And here's the playlist for t...
Ceiling, Floor, & Round Nodes - Shader Graph Basics - Episode 17
Views 2.4K3 months ago
In this shader tutorial, we take a look at the Floor, Ceiling, & Round nodes in Unreal5 and Unity3d. First, I go over their basic functions and then I show 3 examples of how to use the Floor, Ceiling, & Round nodes in a shader. Here's last week's video on advanced the Length & Distance nodes: thexvid.com/video/wTHKzjYBH7U/video.html And here's the playlist for the whole series: thexvid.com/p/PL...
Length & Distance - Shader Graph Basics - Episode 16
Views 2.5K3 months ago
In this shader tutorial, we take a look at the Length & Distance nodes in Unreal5 and Unity3d. First, I go over their basic functions and then I show 3 examples of how to use the length and distance nodes in a shader. Here's last week's video on advanced the Smoothstep node: thexvid.com/video/dn3y5KVxylQ/video.html And here's the playlist for the whole series: thexvid.com/p/PL78XDi0TS4lEBWa2Hpz...
Smoothstep - Shader Graph Basics - Episode 15
Views 3.8K4 months ago
In this shader tutorial, we take a look at the Smoothstep node in Unreal5 and Unity3d. First, I go over the math formulas that smoothstep uses. Then I show the basics of what it does, and finally, I show 2 examples of how to use it in a shader. Here's a link to the graphing calculator I used to show the smoothstep formulas: www.desmos.com/calculator Here's last week's video on advanced detail m...
Advanced Detail Mapping - Shader Graph Basics - Episode 14
Views 3K4 months ago
Advanced Detail Mapping - Shader Graph Basics - Episode 14
Detail Normal Mapping - Shader Graph Basics - Episode 13
Views 3.3K4 months ago
Detail Normal Mapping - Shader Graph Basics - Episode 13
Blending Normal Maps - Shader Graph Basics - Episode 12
Views 4K4 months ago
Blending Normal Maps - Shader Graph Basics - Episode 12
Min, Max, Clamp, & Saturate - Shader Graph Basics - Episode 11
Views 2.6K4 months ago
Min, Max, Clamp, & Saturate - Shader Graph Basics - Episode 11
View, World, Object, & Tangent Space - Shader Graph Basics - Episode 10
Views 5K5 months ago
View, World, Object, & Tangent Space - Shader Graph Basics - Episode 10
Input Vectors - Shader Graph Basics - Episode 9
Views 3.9K5 months ago
Input Vectors - Shader Graph Basics - Episode 9
Texture Coordinates - Shader Graph Basics - Episode 8
Views 3.9K5 months ago
Texture Coordinates - Shader Graph Basics - Episode 8
Dot Product Node - Shader Graph Basics - Episode 7
Views 4.2K5 months ago
Dot Product Node - Shader Graph Basics - Episode 7
Linear Interpolation Node (Lerp) - Shader Graph Basics - Episode 6
Views 3.8K6 months ago
Linear Interpolation Node (Lerp) - Shader Graph Basics - Episode 6
Understanding Texture Maps - Shader Graph Basics - Episode 5
Views 4.9K6 months ago
Understanding Texture Maps - Shader Graph Basics - Episode 5
Basic Shader Math - Shader Graph Basics - Episode 4
Views 6K6 months ago
Basic Shader Math - Shader Graph Basics - Episode 4
Your First Shader - Shader Graph Basics - Episode 3
Views 5K6 months ago
Your First Shader - Shader Graph Basics - Episode 3
The Graphics Pipeline - Shader Graph Basics - Episode 2
Views 7K7 months ago
The Graphics Pipeline - Shader Graph Basics - Episode 2
Announcing What's Next! - Shader Graph Basics - Episode 1
Views 14K7 months ago
Announcing What's Next! - Shader Graph Basics - Episode 1
Volumetric Cloud Materials - Building Worlds In Unreal - Episode 33
Views 4K7 months ago
Volumetric Cloud Materials - Building Worlds In Unreal - Episode 33
What Is A Shader? UE4 Materials 101 - Episode 1
Views 50K2 years ago
What Is A Shader? UE4 Materials 101 - Episode 1
Bump Offset and Parallax Occlusion Mapping - UE4 Materials 101 - Episode 8
Views 33K2 years ago
Bump Offset and Parallax Occlusion Mapping - UE4 Materials 101 - Episode 8
Landscape Textures - Building Worlds In Unreal - Episode 3
Views 29KYear ago
Landscape Textures - Building Worlds In Unreal - Episode 3
Distortion Shader - UE4 Materials 101 - Episode 4
Views 29K2 years ago
Distortion Shader - UE4 Materials 101 - Episode 4
Water Ripples Shader - UE4 Materials 101 - Episode 23
Views 28KYear ago
Water Ripples Shader - UE4 Materials 101 - Episode 23
Flipbook Animation - UE4 Materials 101 - Episode 5
Views 27K2 years ago
Flipbook Animation - UE4 Materials 101 - Episode 5
Shader Performance Optimization - UE4 Materials 101 - Episode 7
Views 25K2 years ago
Shader Performance Optimization - UE4 Materials 101 - Episode 7
Water Caustics - UE4 Materials 101 - Episode 27
Views 25KYear ago
Water Caustics - UE4 Materials 101 - Episode 27
Fixing Landscape Tiling - Building Worlds In Unreal - Episode 5
Views 25KYear ago
Fixing Landscape Tiling - Building Worlds In Unreal - Episode 5
Intro to World Building - Building Worlds In Unreal - Episode 1
Views 23KYear ago
Intro to World Building - Building Worlds In Unreal - Episode 1
Cloth Shading - UE4 Materials 101 - Episode 10
Views 22KYear ago
Cloth Shading - UE4 Materials 101 - Episode 10
Landscape Displacement - Building Worlds In Unreal - Episode 6
Views 21KYear ago
Landscape Displacement - Building Worlds In Unreal - Episode 6
Basics of PBR - UE4 Materials 101 - Episode 2
Views 21K2 years ago
Basics of PBR - UE4 Materials 101 - Episode 2
Rain Ripples Shader - UE4 Materials 101 - Episode 16
Views 21KYear ago
Rain Ripples Shader - UE4 Materials 101 - Episode 16
Water Gerstner Waves - UE4 Materials 101 - Episode 26
Views 21KYear ago
Water Gerstner Waves - UE4 Materials 101 - Episode 26
Volumetric Ice Shader - UE4 Materials 101 - Episode 11
Views 21KYear ago
Volumetric Ice Shader - UE4 Materials 101 - Episode 11
Water Foam - UE4 Materials 101 - Episode 28
Views 20KYear ago
Water Foam - UE4 Materials 101 - Episode 28
Water Depth Shader - UE4 Materials 101 - Episode 24
Views 20KYear ago
Water Depth Shader - UE4 Materials 101 - Episode 24
Interactive Water - Building Worlds In Unreal - Episode 27
Views 20K9 months ago
Interactive Water - Building Worlds In Unreal - Episode 27
Rain Puddle Shader - UE4 Materials 101 - Episode 17
Views 20KYear ago
Rain Puddle Shader - UE4 Materials 101 - Episode 17
Rain Wetness Shader - UE4 Materials 101 - Episode 13
Views 19KYear ago
Rain Wetness Shader - UE4 Materials 101 - Episode 13
Introduction - HLSL Shader Creation 1 - HLSL Shader Fundamentals
Views 19K2 years ago
Introduction - HLSL Shader Creation 1 - HLSL Shader Fundamentals
Landscape Materials - Building Worlds In Unreal - Episode 4
Views 19KYear ago
Landscape Materials - Building Worlds In Unreal - Episode 4
Rain Drops Shader - UE4 Materials 101 - Episode 14
Views 19KYear ago
Rain Drops Shader - UE4 Materials 101 - Episode 14
Rain Drip Shader - UE4 Materials 101 - Episode 15
Views 19KYear ago
Rain Drip Shader - UE4 Materials 101 - Episode 15
World-Aligned Textures - UE4 Materials 101 - Episode 22
Views 18KYear ago
World-Aligned Textures - UE4 Materials 101 - Episode 22
High Resolution Heightmap Data - Building Worlds In Unreal - Episode 16
Views 18K11 months ago
High Resolution Heightmap Data - Building Worlds In Unreal - Episode 16
Procedural Noise - UE4 Materials 101 - Episode 19
Views 17KYear ago
Procedural Noise - UE4 Materials 101 - Episode 19
River Water with 4.26 Water System - Building Worlds In Unreal - Episode 24
Views 17K10 months ago
River Water with 4.26 Water System - Building Worlds In Unreal - Episode 24
Creating Landscapes - Building Worlds In Unreal - Episode 2
Views 17KYear ago
Creating Landscapes - Building Worlds In Unreal - Episode 2