- Home /
InnerGlow Shader for Polygons
Hello,
I am trying to get an "InnerGlow-Effect" on a 2D Polygon Mesh.
The following Image shows the Effect made in Photoshop.
I tried a lot of different approaches (including outline-shaders) but non of these worked for me.
About the mesh:
In editor it is a PolygonCollider2D
I triangulate the points given from the PolygonCollider2D
Finally I generate a new mesh from it.
That works fine. But getting the InnerGlow (so called in Photoshop) seems quite difficult.
What I achieved using a Fragment/Vertex shader is the following:
I would be glad if you could help me!
Felix
unbenannt-1.jpg
(39.6 kB)
unbenannt-2.jpg
(31.5 kB)
Comment