I couldn’t really find anything related to this after a quick search, but I wasnt sure what to search for in the first place…
Basically, I have a water shader that I franken-coded from different bits and pieces of nodes I found (some posted here included), that somehow ended up looking perfect against my own expectations. But after packaging the project for Windows 10, 64bit, the area of the shoreline which is supposed to subtly fade into transparency is much wider! It’s really glaring and adjusting the variables on the fade doesnt seem to change much. The material is translucent, default lit, in a 14.4 project.
Is it allowed to bump? I’m terribly sorry, but I really have to figure out how to get this to work I would like to understand why it isn’t working either, if there is any explanation for that. Would it perhaps make more sense to post this in the VR Development forum?
Distance fields are not yet supported in VR. It is likely that it is not updating the global clipmap position or something like that, so you end up seeing a lower res version. I would instead recommend using something like DepthFade to do the soft edge.
Thank you very much! That was the push I needed It was much easier to implement the DepthFade than I thought. Now I only need to check if it still works after the build (when I have access to the Vive).
One follow-up question though, if I may: A second effect I did with the DistanceToNearest node worked fine in the packaged Build. It would of course make sense to switch that one to DepthFade regardless, for a cleaner project; but it suffers from the problem that the view angle drastically changes the way the effect looks. Since my project is supposed to encourage move around and look at things from different angles, this is not feasible. Is there a way to “fix” the effect to one, perhaps simulated, viewing angle?
this is called ‘perspective correction’ and it will help, but may not be perfect since the ray will hit different geometry at different angles. but it will stabilize the case where the bottom is a plane parallel to the top perfectly.
if you have quickly changing terrain height under the water, I suggest you instead bake out the gradient to a flat texture. The node “Landscape Manual UVW” can map it given specified min and max coords.