一个简单总结了Bulit-in到URP变化的blog :From Built-in to URP (teodutra.com) (二)、整体框架 我创建了一个.shader文件和三个.hlsl文件来完成本次渲染。 4个文件 基础Pass主体写在ForwardPass文件当中,输入参数写在Input文件当中,描边Pass主体写在Outline文件当中,属性面板设置以及shader框架在.shader文件中完成。
在渲染效率优化的过程中,若前后渲染批次调用了同一个着色器,则应当尽量保证关键字相同的物体同时渲染。 需要注意的是,在目前的Unity版本Editor Inspector的BaseShaderGUI中没有keywords标签,但不同的功能可能会开启关键字,比如:Workflow Mode选Specular、激活Emission发光、使用外描边Outline等等。 图6 配置影响关键词 为了...
将在URP旁边自动创建一个新的Forward Renderer。将其重命名为Outline Renderer 。它将负责实现卡通轮廓效果。 现在,我们必须告诉我们的项目使用我们创建的Asset和Renderer。 导航到“ Edit(设置)”>“Project Settings(项目设置)”>“Graphics(图形)” 。在“ 可脚本编写的渲染管道设置(Scriptable Render Pipeline Setting...
7 _Ramp("Ramp Texture",2D)="white"{} 8 _Outline("Outline",Range(0,0.1))=0.02 9 _Factor("Factor of Outline",Range(0,1))=0.5 10 _OutlineColor("Outline Color",Color)=(0,0,0,1) 11 _Specular("Specular",Color)=(1,1,1,1) 12 _SpecularScale("Specular Scale",Range(0,0.1))=0.0...
但是很遗憾的是他不支持URP项目,所以现在推荐这款插件,他能很好的支持URP,对于HDRP我没有试过,官方也没有说明,需要的可以去试试看 地址 https://assetstore.unity.com/packages/tools/particles-effects/quick-outline-115488#reviews 介绍 快速轮廓是一个世界空间轮廓工具,可为任何对象添加实心轮廓。
URP 是 Unity 引擎专为移动端游戏开发的可编程渲染管线,已经帮助众多游戏在加强画质的同时,带来性能方面的提升,如《Infinite Galaxy》就基于 URP 渲染出了具有超强沉浸感的宇宙空间。在 Unity 技术开放日-成都站,Unity 技术专家为大家详细介绍了 Unity 通用渲染管线(简称"URP")的基础功能及最新动向。 本文节选了部分...
WhenOverlayis turned on, we’ll take aURP Sample BufferinBlitSourcemode and use aLerpnode to pick between that (theAslot) and theOutline Color(theBslot), using theSaturatevalue as the interpolation factor (theTslot). WhenOverlayis turned off, just multiply theSaturateresult byOutline Color. ...
当然也有解决方案,就是多复制几分,来达到圆滑边缘的目的,参考:n-yoda/unity-vertex-effects: Beautiful text outline for Unity UI. (github.com),但是这样大代价是文字量越多,造成的性能损耗会非常大, 因为,一个文字需要6个顶点,N个文字,复制M份,那就是 n*(m+1)*6个顶点,数量非常爆炸。
Motion Blur for URP Outline Objects Discord: https://occasoftware.com/discord TL;DR 100+ unique crosshairs packaged in 3 resolutions, plus the source files for total control. Overall, this pack includes 500 crosshairs or crosshair color variants x 3 resolutions for a total of 1500 texture asset...
Clean Outline HDRP C CatRabbit (6) (25) $9 Taxes/VAT calculated at checkout License type: Single Entity Single Entity Recommended for individuals and small businesses. Multi Entity Recommended for large enterprises working across multiple locations. ...