- Home /
Non Tiling Alpha Map for "Layer" Shader
I'm using the Two Layer Terrain Shader from the UnifyWiki - http://unifycommunity.com/wiki/index.php?title=LayerShader
I'm generating the alpha map at runtime and require it to go diagonally across the terrain from the bottom left corner to the top right corner. Within the Inspector the alpha map of the material's shader is being correctly generated.
However, when the material is applied to a Mesh (flat plane) the alpha map appears to tile across the mesh, creating diagonal stripes...
I've taken a look at the shader source but with no experience in Shader programming its not really obvious how I can adjust this?
Can anyone give any pointers?
Thanks!
Matt
Answer by MSFX · Apr 05, 2012 at 11:27 PM
This has appeared to be a UV issue, I was procedurally generating the mesh and was assigning the UVs values > 1.0. I'm now scaling them to be between 0 and 1.0 and the problem has resolved itself :)
Your answer
Follow this Question
Related Questions
Texture tiling based on Object size/scale 4 Answers
transparent mode does not work at alpha=255 1 Answer
Glass Shader with Strumpy Shader Editor 1 Answer
About shader! 0 Answers