# Cel Shader using World Space Normals

**URL:** <https://forums.unrealengine.com/t/cel-shader-using-world-space-normals/2846185>\
**Category:** Asset Creation\
**Tags:** unreal-engine, question\
**Created:** [October 28, 2026, 12:14pm UTC](https://forums.unrealengine.com/t/cel-shader-using-world-space-normals/2846185 "2026-10-28T12:14:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DragonFlyInAHat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DragonFlyInAHat](https://forums.unrealengine.com/u/DragonFlyInAHat)\
**Post date:** [October 28, 2026, 12:14pm UTC](https://forums.unrealengine.com/t/cel-shader-using-world-space-normals/2846185/1 "2026-10-28T12:14:58Z")

</div>

Not completely sure this is the right forum for this but I couldn’t find anything closer to what I was looking for.

I’ve been working on making a cel shader that uses a hand-painted style based on the Hollow Knight games, and I’ve run into an issue trying to include WSN maps on my shader. I’ve made a World Space Normal map in Substance Painter, and I’ve added a toggle in my Cel shader to swap between Pixel Normal WS and the WSN map. This is all plugged in to a fairly standard Dot Product with the light direction, and connects to the alpha of some lerps to calculate where the highlights and shadows should appear.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/6/7/76767ba464b29e2b62b31d8e93a3fb5baaaa88d7.png)

The issue I’m having is that, when I toggle the shader to use the WSN map, the shader no longer considers the character’s position in the calculation - the light will appear as if it’s coming from the front of the character even if the character rotates 90 degrees. However, the highlights WILL rotate if the original directional light is moved. Presumably this is because the WSN map has baked in data and doesn’t account for the character’s changes in position. I’ve tried to look online to find ways of blending the WSN map with the Pixel Normal WS node but this has the same issue where the WSN map doesn’t rotate properly, and in some places actually makes the highlights appear in completely the wrong places.

I really need the WSN/normal map as I need to create the illusion of a curved surface on flat planes, so is there a way to include the WSN map in the calculation and still have the highlighted areas move with the character? If needed I also have the baked our normal map so if there’s a way to use standard normal maps somehow I can include those too.

---

<div class="post-metadata">

**Author:** ![BRS\_GerDAngelo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/brs_gerdangelo/32/1009628_2.png) [@BRS\_GerDAngelo](https://forums.unrealengine.com/u/BRS_GerDAngelo)\
**Post date:** [October 28, 2026, 9:58pm UTC](https://forums.unrealengine.com/t/cel-shader-using-world-space-normals/2846185/2 "2026-10-28T21:58:41Z")

</div>

Hi @DragonFlyInAHat

Creating a custom cel shader with baked maps can be quite a pain when it comes to rotations and trying to imitate Hollow Knight.

The problem with your setup is shown in your material graph. The World Space Normal (WSN) map you have baked in Substance Painter has normals in Local/World space  
This means when you rotate your character, your texture coordinates will rotate with your mesh but the normals in your texture won’t update to world space relative to your character. Meaning your lighting is thinking your character is still facing the same way.

Before we dive into the exact vector transformation math to fix this rotation, I just wanted to ask:

- Are you using a standard skeletal mesh for your character or are some of these flat planes separate components attached to bones?

- When you baked the map in Substance Painter, did you bake it in **World Space** or **Tangent Space** and are you sampling it as a normal map or a standard color/vector texture in Unreal?

**Posible Solution**

In order to have your baked world space normals rotate with your character, you can transform your sampled texture data by the actor’s world rotation.  
Alternatively you can use a regular Tangent Space Normal map and dynamic vertex normals of your mesh to support flat planes.

Usually when dealing with baked world-space normals on a character that rotates you can transform the vector using a **Transform** node or unpack the texture properly:

1. Connect your **WSNMap** output into a **Transform** node (set from **Tangent** or **Local** to **World** , depending on how your texture was baked)  
Alternatively if it’s baked in absolute world space, you may need to multiply it by the actor transform or use the **TransformVector** node

2. For flat planes where you want to fake rounded surfaces, combining a standard tangent space normal map with your pixel normals using a **BlendAngleCorrectedNormals** node often gives you much better results during character rotation without breaking world-space alignment.

**Epic Documentation:** [Materials](https://dev.epicgames.com/documentation/unreal-engine/unreal-engine-materials) · [Vector Operation Material](https://dev.epicgames.com/documentation/unreal-engine/vector-operation-material-expressions-in-unreal-engine)

Please let me know if the posible solution helps and how your setup is plugged downstream or if you’re using custom vertex interpolators.

---

<div class="post-metadata">

**Author:** ![Frenetic](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/frenetic/32/1142542_2.png) [@Frenetic](https://forums.unrealengine.com/u/Frenetic)\
**Post date:** [October 28, 2026, 10:19pm UTC](https://forums.unrealengine.com/t/cel-shader-using-world-space-normals/2846185/3 "2026-10-28T22:19:56Z")

</div>

> [@DragonFlyInAHat](#):
>
> The issue I’m having is that, when I toggle the shader to use the WSN map, the shader no longer considers the character’s position in the calculation - the light will appear as if it’s coming from the front of the character even if the character rotates 90 degrees.

use rotate normal about axis and rotate your WSNs to align with the rotation of your character. this could be something the char-bp stores in a mpc-value, which can be read into the material (off the top of my head, likely other ways too).

feed the updated/rotated WSNs into the rest of your shader

otherwise make sure that whatever normals you are using, maths included account for whatever space you arein, world-space, tangent-space, etc, etc. Transform node comes in very handy here. if you use it transform as early as possible to save on some maths..
