I’d like to make a material that feathers from one color at the edge of the silhouette of a mesh, to another in the center, so it looks like the inner glow effect on photoshop. I tried using a fresnel node for this, but it didnt give the results I wanted at hard edges and on planar meshes. Can anyone help?
hmm… I think the dot product of the camera vector and the vertex normal may get you started, but it’ll not work with all meshes. If you have bevels in your mesh they’ll be uhm “glowing” too. See attachment for rough example, but you’ll probably want to lerp between black and the desired glow color and attach that to the emissive color input. You might also want to mess around with some exponential functions to control how wide the glow is. I’m also new to Unreal, so I dunno, there may be a better way to do this - or some built in way to do it.
Maybe scene depth could do glow, but that works best with 2d scrollers.
I am also looking for solution to glowing edges on flat shapes, this would be awesome for all kinds of gui.