Page 1 of 1

Trying to figure out how to get refraction to work...

PostPosted: Wed May 09, 2018 12:00 pm
by crazyfingers619
There's a refraction node that seems to run off a cubemap texture, but this doesn't seem to be screen space specific and would only work on Opaque object I believe.
http://wiki.amplify.pt/index.php?title=Unity_Products:Amplify_Shader_Editor/Refract

I'm trying to get refraction to work on my particle effects and I can't seem to find a way to do that, the only input currently is for RGB and Alpha transparency into a single slot as well as an offset function.

Shader Forge had a very easy way of plugging in refraction for any type of blending and it would displace the screen space by the XY of the input based no opacity. Not sure if it's possible to expose the refraction node for particles of any type in Amplify and haven't been able to find any resources on the topic after a bit of searching...

Thanks again in advance for any help!

Re: Trying to figure out how to get refraction to work...

PostPosted: Wed May 09, 2018 2:21 pm
by Amplify_Borba
Hello!

Even though there's no Refraction input in out Particles template, you may check out our HeatHaze sample as a starting point for creating your own refraction effect by deforming its UV's.

You may choose to only use the normal and intensity without the UV manipulation, and even use the use the refraction node within the calculations as it doesn't need to be applied to a cubemap. Also, both Grab Screen Position and Grab Screen Color nodes are pivotal for this effect.

Please let me know if this helps you out, thanks!