# \[Material\] How to achieve stylized edge highlighting automagically

**URL:** <https://forums.unrealengine.com/t/material-how-to-achieve-stylized-edge-highlighting-automagically/475333>\
**Category:** Rendering\
**Tags:** unreal-engine, Shaders, question\
**Created:** [December 2, 2020, 7:22pm UTC](https://forums.unrealengine.com/t/material-how-to-achieve-stylized-edge-highlighting-automagically/475333 "2020-12-02T19:22:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Austinlele](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Austinlele](https://forums.unrealengine.com/u/Austinlele)\
**Post date:** [December 2, 2020, 7:22pm UTC](https://forums.unrealengine.com/t/material-how-to-achieve-stylized-edge-highlighting-automagically/475333/1 "2020-12-02T19:22:36Z")

</div>

This is a question or ask around a material shader.

Does anyone know of a way to achieve a hand painted or stylized material look with what I will call “edge highlighting” from a mesh automatically? Here is an example:

https://sketchfab.com/models/0dde25b1b7024a68aa4c6c68261e991b/embed?

Now this is a hand painted texture that goes in the base color to give the edges the highlighted look, but can this be done with a shader only? I reference the geometry pointiness node from within blender that is able to mask out the edges fairly well, maybe there is something in unreal like that?

Kind of an open ended question, so I apologize for that. Hopefully this question makes sense. Thanks!

---

<div class="post-metadata">

**Author:** ![roamingalien39](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@roamingalien39](https://forums.unrealengine.com/u/roamingalien39)\
**Post date:** [February 25, 2026, 3:42pm UTC](https://forums.unrealengine.com/t/material-how-to-achieve-stylized-edge-highlighting-automagically/475333/2 "2026-02-25T15:42:26Z")

</div>

I’m also working on a similar shader and I’m unable to find a solution for it. If you have solved it, kindly share.

---

<div class="post-metadata">

**Author:** ![ZacD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZacD](https://forums.unrealengine.com/u/ZacD)\
**Post date:** [February 25, 2026, 5:09pm UTC](https://forums.unrealengine.com/t/material-how-to-achieve-stylized-edge-highlighting-automagically/475333/3 "2026-02-25T17:09:13Z")

</div>

Here’s an option:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/0/d/30d3c2422464ad52160965fbd2af216ba7a0a70a.jpeg "UE4 Screen Space Curvature Shader") ](https://www.youtube.com/watch?v=Qmi9LgH5N2E)

Blog Post

> **[Curvature](https://www.markserena.com/post/ue_screenspacecurvature/)**
>
> Reload modified Maya textures within timeframe.

Made screen space curvature shader recreated from here.

> **[Screen Space Curvature Shader - Made by Evan](https://madebyevan.com/shaders/curvature/)**

Forum post

> [@\[FREE\] Curvature Shader](https://forums.unrealengine.com/t/free-curvature-shader/91962):
>
> Hi, Made a curvature shader based of this [GLSL shader](http://madebyevan.com/shaders/curvature/) Updated to use BasePassPixelShader.usf version of NormalCurvatureToRoughness it’s cheaper and with a better result. [Youtube](https://www.youtube.com/watch?v=Qmi9LgH5N2E) The normals are interpolated linearly so the faceting can’t be fixed at the moment, but with higher resolution mesh or more math savy people (or UE4 will do smooth interpolated normals) this could be improved upon. Lemme know if you find it useful. Built in 4.16 but can be for any version. Zip attached ---- Upda…
