#how do I combine multiple splat maps to achieve the idea of having more material layers
1 messages · Page 1 of 1 (latest)
I would assume you could do two texture arrays, one with your splatmaps and one with your textures to paint
could you elaborate on that? I'm new to unity shaders
4 textures to 1 slatmap (4 channels)
Array of texture and an array of splatmaps
blend everything together
oh ok, I see what you mean. My main problem though is I'm not sure how to do that
the screenshot I sent is a premade shader I found on a documentation on how to make custom terrain shaders, but I am trying to edit it to add more splat maps.
probably can get a better answer in #⛰️┃terrain-3d cause I'm feeling like you'll be needing to edit the actual shader code
https://docs.unity3d.com/Packages/com.unity.terrain-tools@2.0/manual/toolbox-import-splatmaps.html
Check this plugin out as it may have some features that could help
https://docs.unity3d.com/ScriptReference/TerrainData.SetAlphamaps.html
And there's the TerrainData API you can maybe set from that