Cool inverse image effect with material?
Hi, I am wondering if it's possible to achieve this effect with a material applied to an object? Does anyone know how this might be done?
asked Jan 07 '19 at 07:49 PM in Using UE4
You can use "scene color" node to sample pixels behind the material (and from entire screen too) like a texture. You can get ScreenPosition node, break it, invert (1-x) Y axis (green chanell) and then plug it to UV of SceneColor (sample position map). It will make SceneColor sample Y axis in invert
Note that SceneColor require material to be in translucent mode, as sampling behind pixels how translucency work. Also remember that this can only sample pixels that are visible on screen, same as screen space reflection, you might hear about this limitation if you following NVidia's ray tracing talks. Also remember to use emissive color pin, so what you material outputting is not altered by lightning
If you at it, you can also alter color of sampled pixels so you can play around that too if you want.
Follow this question
Once you sign in you will be able to subscribe for any updates here