Hi All,
I am trying to create a custom terrain shader in the shadergraph (12.0.0) for the Unity standard terrain using various resources I found online but have hit a bit of a brick wall. I can get the first four textures of the Unity Terrain by using Reference “_Control0” in a sample texture 2d and split the output but am struggling trying to get the 5th, 6th, 7th and 8th texture.
After looking in the “TerrainLit_Splatmap.hlsl”, I thought it would simply be using the Reference “_Control1” with my logic being that as stated in the above:
#ifdef _TERRAIN_8_LAYERS
DECLARE_TERRAIN_LAYER_TEXS(4);
DECLARE_TERRAIN_LAYER_TEXS(5);
DECLARE_TERRAIN_LAYER_TEXS(6);
DECLARE_TERRAIN_LAYER_TEXS(7);
TEXTURE2D(_Control1);
#endif
I have tried adding _TERRAIN_8_LAYERS to the scripting define symbols but this made no difference.
Any pointers gladly received and thanks in advance.