Using Landscape Grass Masks With PCG - Procedural Content Generation (PCG) - Episode 3 @BenCloward
Using Landscape Grass Masks With PCG - Procedural Content Generation (PCG) - Episode 3  @BenCloward
Uploaded April 2026 | Updated September 2026, 2 weeks ago
In this tutorial, I show how to use grass masks from a landscape material to control where PCG grass is placed. Using this technique you can use any of the features of a material to control PCG placement.

If you don't have a Terrain Angle Mask material function, here's the video where I show how to make it: youtu.be/CGTPW2mWeGQ?si=BNttASibzUWuThZ_&t=1036

Here's the command that is required to make the grass mask update for PCG:
grass.GrassMap.AlwaysBuildRuntimeGenerationResources 1
I recommend that you put this command into your project's ini file so you don't have to enter it every time you run the editor.

Here's the code to copy and paste into the HLSL Source of your Point Generator node:
bencloward.com/youtube/grasscode.txt

Here's the playlist for the whole series:
youtube.com/playlist?list=PL78XDi0TS4lF7o4-COsQkltYxV1Zt7nUj

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 #PCG
Using Landscape Grass Masks With PCG - Procedural Content Generation (PCG) - Episode 3Brushed Metal Shader - Advanced Materials - Episode 11Introduction - Advanced Materials - Episode 1Preproduction Optimization Steps - Game Optimization - Episode 3Rock Shader - Advanced Materials - Episode 3Particle System Random Values - Advanced Materials - Episode 45Underwater Caustics - Advanced Materials - Episode 41Particle System Color - Advanced Materials - Episode 53Creating Magic Moss With PCG - Procedural Content Generation (PCG) - Episode 10Light Color & Shadow - Custom Lighting Models - Episode 6Combining Signed Distance Fields - Procedural Shapes and Patterns - Episode 3Using Position Data - Shader Graph Basics - Episode 26
Ben Cloward |

Using Landscape Grass Masks With PCG - Procedural Content Generation (PCG) - Episode 3

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER