vec3 sum = mix(WaterLayer1, WaterLayer2, WaterLayer3);to displace 3 layers of water texture on top of each other to give the water a nice look.
I want to display this as triplanar so that the material scaling isn't affected by the size of the mesh. However, I can't. It seems that with triplanar texture I can only display sampler2Ds.
How can I make the material size be unaffected by the mesh size?