- Home /
Question by
Diluvian2314 · Jan 06, 2014 at 03:00 AM ·
textureing
Blend between 3 Textures by depth value
Hi I wanted to try out a terrain-texture which blends between 3 different detail states (like mipmaps but I want to change the appearance). Actually I use a Color and a Normalmap and I want both to change as soon as a defined depth is reached. Every Texture should use its own tiling/scaling.
for example:
0-3m: Texture 1, Normalmap 1
3-20m: Texture 2, Normalmap 2
20-end: Texture 3, Normalmap 3
Is there already a shader which can handle this?
Comment
Use step to find your coefficients:
fixed c = step(20, z);
fixed a = 1 - step(3, z);
fixed b = (1 - a) * (1 - c);
Your answer
![](https://koobas.hobune.stream/wayback/20220613125633im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to set Terrain Texture via Script? 0 Answers
Texture blending 0 Answers
Strange Unity GI issue 0 Answers
Two quads, same position, which one is seen ahead? 1 Answer
Models from 3Ds max doesn´t show texture 0 Answers