StarRail NPR Shader
ForkFan-made shaders for Unity URP attempting to replicate the shading of Honkai: Star Rail.
com.stalomeow.star-rail-npr-shader Install via UPM
Add to Unity Package Manager using this URL
https://www.pkglnk.dev/star-rail-npr-shader.git README Markdown
Copy this to your project's README.md
## Installation
Add **StarRail NPR Shader** to your Unity project via Package Manager:
1. Open **Window > Package Manager**
2. Click **+** > **Add package from git URL**
3. Enter:
```
https://www.pkglnk.dev/star-rail-npr-shader.git
```
[](https://www.pkglnk.dev/pkg/star-rail-npr-shader)Dependencies (6)
Used By (1)
Packages 1
README
StarRail NPR Shader
Fan-made shaders for Unity URP attempting to replicate the shading of Honkai: Star Rail. The shaders are not 100% accurate because this project is not a reverse engineering - what I do is to replicate the in-game looks to the best of my ability.
| Sparkle | Firefly |
|---|---|
![]() |
![]() |
Features
Character Shaders
- Honkai Star Rail/Character/Body
- Honkai Star Rail/Character/Body (Transparent)
- Honkai Star Rail/Character/EyeShadow
- Honkai Star Rail/Character/Face
- Honkai Star Rail/Character/FaceMask
- Honkai Star Rail/Character/Hair
Rendering
Both Game model and MMD model.
Support
ForwardandForward+rendering paths.A single
RendererFeatureto manage all custom passes.Provide C# API to control some rendering behavior.
Characters receive only scene shadows and ignore self-shadows.
Per-object shadow, supporting up to 16 shadows on the same screen.
Custom bloom using the method shared by Jack He in Unite 2018.
Custom ACES tonemapping. The formula is
$$f(x)=\frac{x(ax+b)}{x(cx+d)+e}$$
where $a,b,c,d,e$ are all parameters.
Editor
- Customized material editor.
- Configurable asset processor integrated with Unity preset system.
- Automatically smooth normal.
- Automatic material setup.
- Build processor and Shader stripper.
material.jsoninspector.
Special Thanks
- miHoYo / HoYoverse
- Razmoth
- °Nya°222
Star History
Comments
No comments yet. Be the first!


Sign in to join the conversation
Sign In