Quantcast
Viewing all articles
Browse latest Browse all 93

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.


Viewing all articles
Browse latest Browse all 93

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>