Tiling issues with landscape coordinates

Hi!

I’m having some issues with my landscape material, where I’m attempting to use a combined texture for multiple landscape layers, instead of having each layer use its own sampler.

My thinking was that I could use the LandscapeLayerCoordinates to shift the texture along the UV, and in-editor, it seems to be working. This is how I have it set up:

Inside the material editor, and in the paint rollout, everything seems to be fine. Each layer is mapped to its subtexture in the larger one, and they come out as they should in the preview.

However, when painted onto a landscape, it does not apply the UV offsets, and just paints the raw texture (which looks like this) onto the landscape.

The final result is a complete mess, and I’m not entirely sure what I’m doing wrong. I’ve attempted to combine the landscape coordinates with a normal texture coordinate, but I never really understood what I was doing there :stuck_out_tongue:

If anyone has a clue as to what is going awry, or what I should do instead of this, I’d greatly appreciate any help :slight_smile:
It should be noted that I’m unable to give each layer its own texture, as that exceeds the 16 sampler limit on Linux, which is one of my target platforms.

May be a dumb question and isn’t solving your problem with the texture atlas but have you tried setting the texture samples to “Shared: Wrap” ?

75047-1.jpg

In my landscape material I’m using ~30 different textures

This was how I had it set up before, but since I’m now targeting platforms where that isn’t a possibility (Mac has a hard limit on 16, Linux has a bug which hasn’t been fixed), I can’t use shared samplers. I appreciate the thought, though :slight_smile: