- Home /
Is it possible to have a shader that draws various textures based on normal angle?
I have a subdivided mesh that I use as a terrain, and allow users to raise or lower parts of the mesh to design landscape. Right now it simply stretches the texture out with the adjusted vertices, but I'd like to make it so if the terrain angle gets steep enough, it starts to blend into a different texture.
Also if possible, the angled texture could be different based on the Y coord of the point being textured.
Answer by Jessy · May 04, 2011 at 12:49 PM
Yes, look at the car.
http://forum.unity3d.com/threads/56180-Strumpy-Shader-Editor-4.0a-Massive-Improvements
Sweet! After messing around with this editor for a few hours, I got the exact effect I wanted.
Your answer
Follow this Question
Related Questions
Moss/Snow texture on arbitrarily rotated doodads. 1 Answer
Runtime Loaded Bump/Normal Texture into "Bumped Diffuse" Shader 2 Answers
[CG vertex shader] Surface normal to screen angle 1 Answer
Tracing in Unity3D 2 Answers
Shader Texture Change 3 Answers