Now you can just using the prefabs of shaded characters,but you still need to import the_ Settings.unitypakage _ and the_ Volume.unitypackage_ files in SRLS2.1.3 folder. And you still need to apply the post-processing effect. in the Global Volume (or Box Volume) Inspector panel, select the corresponding volume file (file name is MI Volume Profile) under the "volume->profile" section.
现在你可以使用着色好的角色prefabe文件了,但你仍要导入_ Settings.unitypakage _ 和_ Volume.unitypackage 两个文件, (在 SRLS2.1.3 文件夹中). 然后你仍需要在Global Volume(或者Box Volume)的Inspcter面板中,在volume->profile一栏选择对应的volume文件 (文件名是 MI Volume Profile). 这一步就是上后处理效果.(不会写后处理,就用URP自带的后处理了)
- Drag the unitypackage files into your project seperately.
- Replace the texture in the inspector panel for each materials (Assets -> 0_SR -> mar_7th)
- Import the character model, and apply the materials (the eyebrow should be applied with the eye material) .
- Choose volume from the imported files (The name is MI Volume)
- Binding three empty objects (Assume naming they as Center, Front, Right) with the character's head.Set the position of Center as (0,0,0),the position of Front as (0,0,A) (A could be any positive number), the position of Right as (B,0,0) (B could be any nagetive number)
6. Attach the script (Assets -> 0_SR -> SRLS2.1 -> GetFaceDir.cs) to the character.Then drag the three empty objects and face/hair materials into the corresponding columns in the inspector panel.(Like the upper img)
- Click play.(The GetFaceDir.cs script wouldn't update the facing direction in edit mode when you are rotating your character.)
- 将unitypackage文件分别拽入您的项目中.
- 在.material文件的inspector面板中,替换对应角色的贴图(.material文件的路径为_(Assets -> 0_SR -> mar_7th)_)
- 导入角色模型, 上材质 (eyebrow应该和eye上一样的材质) .
- 在Global Volume(或者Box Volume)的Inspcter面板中,在volume->profile一栏选择对应的volume文件 (文件名是 MI Volume Profile). 这一步就是上后处理效果.(不会写后处理,就用URP自带的后处理了)
- 给角色的头部骨骼绑定三个空物体 (假设他们的名字分别是 Center, Front, Right) . Center 的坐标设为 (0,0,0),Front 的坐标设为 (0,0,A) (A 是任意正实数), Right 的坐标设为 (B,0,0) (B 是任意负实数)
6. 将脚本 (路径为 Assets -> 0_SR -> SRLS2.1 -> GetFaceDir.cs) 挂载到人物身上. 然后将三个空物体以及 face/hair 材质拽入脚本(GetFaceDir.cs)的inspector面板中的对应栏目中.(参考上图)
- 点击 play. (脚本(GetFaceDir.cs)在play模式下才会运行,并把头部向量传递给shader.所以,如果你打开项目后没有进入过paly模式,在editor模式下可能不会有脸部阴影以及眼透效果)