Im trying to make a portal shader. Im using the fresnel effect to keep the center of the portal black, but when I move the fresnel (black center) moves with the camera.
How can i stop it from moving and keep it in the center of the object (the object is a sphere, scale: X: 3 Y: 3 Z: 0.3)
@Cyberrex5 Hello! it may be too late for replying, but I just found this post.
The simplest way for fixing this issue would be to use a spheremask node instead of a fresnel node.
Sphremask will stay always at center and also will allow you to customize the hardness and radius of the “fresnel”.
Standard fresnel looks like this:
and Sphere mask fresnel looks like this:
you just need to adjust the radius and hardness of the sphere mask and it will look similar to standard fresnel.