{"repo":"JasonMa0012/OutlineNormalSmoother","free":true,"listed":false,"github":"https://github.com/JasonMa0012/OutlineNormalSmoother","clone":"git clone https://github.com/JasonMa0012/OutlineNormalSmoother.git","description":"A unity plugin that automatically calculates smooth normals for outline rendering.","language":"C#","stars":95,"topics":["npr","shader","toon","toonshading","unity","toonrendering"],"license":"MIT","category":"game-templates","readme_excerpt":"Unity Outline Normal Smoother 本插件可以快速且自动地解决卡通描边在硬边处断裂的问题, 开箱即用, 可自定义, 高性能 (Jobs + Burst + Mathematics). This plugin quickly and automatically solves the problem of Toon Outlines breaking at hard edges, out-of-the-box, customisable, high performance (Jobs + Burst + Mathematics). 安装 Installation 1. Make sure your Unity Version = 2022.2 2. Open your project 3. Window Package Manager Add Add package from git URL , enter: https://github.com/JasonMa0012/OutlineNormalSmoother.git - You can also choose to manually download the Zip from Github，then: Package Manager Add package from disk 用法 Usage 1. 为你的模型文件名加上 Outline 后缀, 例如 Cube Outline.fbx . 2. 将模型导入Unity, 此时会自动计算该模型的描边法线, 并存储在顶点色中. 3. 你可以在 Packages\\OutlineNormalSmoother\\Test\\DemoScene.unity 场景中用你的模型替换Cube模型查看平滑后的描边结果. 4. 如果要在你自己的Shader使用描边法线, 请查看 Packages\\OutlineNormalSmoother\\Test\\Shader Outline 中的示例. -------- 1. Add the Outline suffix to your model file name, e.g. Cube Outline.fbx . 2. Import the model into Unity, where the outline normals for the model will be automatically calculated and stored in the vertex color. 3. You can replace the Cube model with your model in the Packages\\OutlineNormalSmoother\\Test\\DemoScene.unity scene to see the smoothed outlines. 4. To use outline normals in your own Shader, see the example in Packages\\OutlineNormalSmoother\\Test\\Shader Outline . 自定义 Customize 自定义导入规则 Customize Import Rules 你可以复制并修改 Packages\\OutlineNormalSmoother\\Editor\\SampleCustomImportRule.cs 以自定义导入规则, 筛选哪些模型需要烘焙描边法线, 示例代码如下. You ca","default_branch":null,"files":null,"tree":[],"storefront":"/r/JasonMa0012","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/JasonMa0012/OutlineNormalSmoother/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}