- Home /
Answer by Hoeloe · Feb 09, 2014 at 02:53 PM
Multiple passes. If you get hold of the terrain shader source code, you find two shader files associated with it - one labelled "FirstPass" and one labelled "AddPass". When you have 5 or more textures, Unity draws the first four in one pass, and then renders the whole terrain again with a second pass, allowing for 4 more textures. If you need more than 8 textures, then it needs a third pass, etc.
This is why having more than 4 textures gives you a significant performance drop - you are essentially drawing the entire terrain twice.
Your answer
Follow this Question
Related Questions
How to correctly access and use terrain texture tiling from custom terrain shader? 0 Answers
Anyone have shader that supports two UV channels? 1 Answer
How to automatically apply different textures on terrain based on height? 5 Answers
Shader for ZTest Between Terrain and Objects 0 Answers
Forward Rendering for Terrain, overriding the shader? 0 Answers