Shader Graph - creating height map from normal map
Hello, I stared using Shader Graph and I'm currently trying to do a water shader. I've been following some tutorials and already have a nice result. However, my water is simply 2D, the waves move, but they don't have any depth. So I tried implementing a height map, but it only works with a noise generator, and with this the waves don't match the mesh deformation. I can't connect any of the nodes from the normal map to any of the noise generator. I've been struggling for a while now and I don't know what else I can do.
Answer by troyofearth · Jan 19, 2019 at 04:44 PM
Creating the height map from the normal map would have to be done offline. It would be expensive, you'd need to process the whole normal map first to determine the relative min and max height.
But on the other hand, if you have the heightmap, you can get the normals from that fairly quickly.