Skip to content

Public page for my fork of UnrealEngine 5 where I build cel shading and an outline shader directly into the engine's rendering for performance reasons πŸ‘Œ

Notifications You must be signed in to change notification settings

ashtonland/Unreal-Engine-Cel-Shading

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 

Repository files navigation


🐢 Unreal Engine Cel Shading 🐢

This is a version of Unreal Engine 5.0 with a custom cel and outline shader built into the rendering engine. Any object can be easily cel shaded using the Cel Shading shading model. The cel shading is currently only in the 5.0 branch but will probably be added to future versions. The principles should still remain the same for a while if you want to implement this yourself by reading my article. If not, follow this video to clone and install the UE5 source, except clone this repo instead of the Epic Games repo. As this is a fork of Unreal Engine, the repo is private and you need to join the epic games organization to gain access, follow these steps here


Media

cel shade cel lights Screenshot 2022-06-04 160705 yes! colored lights are supported!

How to Use

  1. In the panel of the material graph, set the blend mode to opaque or masked (masked should work, create an issue if not, I have not explicitly supported it)
  2. Under that, switch the shading model to to Cel Shading
  3. You will see the custom data pins 0 & 1 open up, as Cel Bands and Outline Thickness, Cel Bands takes a fraction.
    	1
    ____________________
    # of bands you want
  4. Set the Outline Thickness pin to a value between 0 and 1
  5. Set the Outline Sensitivity pin, this decides what is an edge or not, between 0 and 1 as well, around .5 is a good value

Slight problem

I have been unable to get cel shading of the shadows to work, for some unknown reason the method I used to split the shadowed regions into bands no longer works after the changes made to the rendering engine in UE5. Here are some resources which I think might hold the solution. I was studying these before I eventually concluded that for my project, banded shadows were unnecessary as I would likely use a single band anyway

Contact

At this point I have a very good understanding of how the code involved in rendering works so if you need any help with either following the article or investigating cel shading of the shadows but you are new to the source code, feel free to reach out with any questions either by hello@deveelo.com or discord!! πŸ˜€

About

Public page for my fork of UnrealEngine 5 where I build cel shading and an outline shader directly into the engine's rendering for performance reasons πŸ‘Œ

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages