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
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










