- Home /
how do i increase/decrease the texture tiling size based on distance from the camera?
i want to fix this issue ive been having, where the texture either looks good up close and bad from afar, or good from afar and bad up close depending on the tiling size i use pics;
tiling size on terrain texture set to X=3 Y=3 looks great up close but terrible from far away
on the flip side a tiling size of X=50 Y=50 looks but much from far away, but terrible up close
so, my question is how can i change the tiling size based on how far away from the camera is being viewed?
OR, what sort of work around can i implement?!
Answer by MakeCodeNow · Mar 04, 2014 at 04:49 AM
The first thing I'd recommend is to use a bit of anisotropic filtering on the terrain textures. That can make a world of difference for textures that you commonly see edge-on.
After that, you probably want to rely on mixing a few textures together and making judicious use of splats to help break up any obvious tiling. This tutorial has lots of good advice.
PS - you can also create custom mip-maps using a dds texture to manually make smaller mips (i.e. further away bits) tile less.
Your answer
![](https://koobas.hobune.stream/wayback/20220613135319im_/https://answers.unity.com/themes/thub/images/avi.jpg)