vault backup: 2024-04-18 21:25:18
This commit is contained in:
parent
52467b388e
commit
fd6cc59e93
@ -18,11 +18,21 @@ rating: ⭐
|
||||
//ToonSpecular添加类型:1.PBR 2. 各项异性(defaultLit)3. 各项异性头发 4. 自定义高光大小与过渡效果 https://zhuanlan.zhihu.com/p/361918341 5.自定义高光形状贴图 https://zhuanlan.zhihu.com/p/640258070 https://github.com/AnCG7/URPShaderCodeSample/blob/891034b3fa6e838e2b231390755479f0f649f181/Assets/Shaders/NPR/Cartoon/Stylized%20Highlight%20(Transform).shader#L2
|
||||
```
|
||||
|
||||
ToonShadow:
|
||||
1. PBR:为了兼容默认阴影效果。
|
||||
**ToonShadow**:
|
||||
再实现阴影偏移以及阴影羽化效果的基础上。
|
||||
1. PBR:兼容UE默认阴影效果。只能调节阴影过渡颜色。使用的公式为: `Lighting.Diffuse = DiffuseColor * (1 / PI) * AreaLight.FalloffColor * (Falloff * HalfLambert);`
|
||||
2. ShadowColorTexture:
|
||||
|
||||
实现阴影偏移以及阴影羽化效果。
|
||||
**ToonLighting**:
|
||||
1. PBR:UE默认光照,多光源模式。
|
||||
2. 仅主光有效:针对cel。
|
||||
|
||||
## Specular
|
||||
**ToonSpecular**:
|
||||
1. PBR:UE默认高光效果。
|
||||
2. 各项异性(defaultLit):UE默认的各向异性高光效果。
|
||||
3. 各项异性头发 :**Kajiya-Kay**高光模型。
|
||||
4. 自定义高光大小与过渡效果:https://zhuanlan.zhihu.com/p/361918341
|
||||
5. 5.自定义高光形状贴图:https://zhuanlan.zhihu.com/p/640258070 https://github.com/AnCG7/URPShaderCodeSample/blob/891034b3fa6e838e2b231390755479f0f649f181/Assets/Shaders/NPR/Cartoon/Stylized%20Highlight%20(Transform).shader#L2
|
||||
|
||||
# 厚涂 ShaderModel(通过修改预积分ShaderModel)
|
Loading…
x
Reference in New Issue
Block a user