Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiliMilk committed Jun 3, 2022
2 parents bbac885 + cbcab71 commit 4e886a0
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@
## Introduction
Simple toon shader in unity universal pipeline.

![image-UnityChan](image/UnityChan.png)
![image-UnityChan](image/UnityChan.png)

Genshin Impact Style(Model and Texture from miHoYo)

![image-Genshin_Sample](image/Genshin_Sample.gif)

## Properties
### SurfaceOptions
Expand All @@ -40,11 +44,11 @@ Shadows based on rampmap.
Used for face shadow, sample a precomputed shadow mask to generate shadows.
Limit:symmetrical face uv.

![SDFMask](image\SDFMask.png)
![image-SDFMask](image/SDFMask.png)

Need to add a script to the object, set the forward and left direction(ObjectSpace).

![SDFScript](image\SDFScript.png)
![image-SDFScript](image/SDFScript.png)

About how to generate sdf shadow mask.
Node:Generate mask in r16 format(antialiasing).
Expand All @@ -70,9 +74,16 @@ Sample "CastHairShadowMask" for shadow.(Check it on face material)

### Rim
![image-Rim](image/Rim.png)
- BlendRim

- RimBlendShadow

![image-BlendRim](image/BlendRim.png)
Left:BlendRim=0 Right:BlendRim=1

1:RimBlendShadow=0 2:RimBlendShadow=1 3:RimBlendShadow=1 RimFlip=1

- RimFlip

Flip RimBlendShadow

### Outline
![image-Outline](image/Outline.png)
Expand Down
Binary file modified image/BlendRim.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/Genshin_Sample.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified image/Rim.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4e886a0

Please sign in to comment.