Amplify shader editor_案例分析1_Community Dissolve Burn

本文介绍了使用Amplify Shader Editor创建Dissolve Burn效果的过程,通过remap和one minus节点调整遮罩,结合颜色采样实现发光边缘。讨论了纹理环绕模式对采样颜色的影响,并通过案例分析解释了不同设置下的颜色变化。
摘要由CSDN通过智能技术生成

刚开始学习Amplify shader editor,很多节点只知道单独用法,但是不清楚连接节点以后是什么作用。开始学习,希望能坚持。

BTW,很感谢学习过程中的朋友,老师的帮助,帮我解决了很多很多问题!!

在这里插入图片描述
这个是Example里面的节点图。说一下我自己的理解。

最开始我非常不能理解为什么需要用两个remap,和两次oneminus。各有各自的作用。

先分析一下如何做这个Dissolve Burn效果。首先我们需要一张类似噪声图,作为遮罩,这样低于clip的部分将会被切掉。其次我们需要一张有颜色的burn map,我们想要将这张图的颜色用我们的遮罩的图片的UV去采样到颜色,然后添加到Emission一起输出出去,这样看起来就好像有发光的边缘,就类似burn effect了。

做遮罩的过程跟shadergraph一样的,我们需要一个滑块来控制这张图的显示与消失。比如我们想要,滑块为0的时候,整个图是的显示的,滑块为1的时候,整个图就完全消失了。

一开始就想,只要把滑块加入到我们的要的dissolve的图就好了。只不过这样的话会发现在最后我们操控shader的时候没有办法使得当滑块为0时,整个图是完全显示的。
在这里插入图片描述

我们用remap将滑块的值重新映射。可以看到

NEW! Support for Lightweight SRP NEW! Multi-Pass on Templates NEW! Compatibility with Unity 2018 NEW! Xbox One/PS4/Switch Support NEW! Texture Array Creator tool NEW! Terrain support NEW! Shader Templates • Lightweight PBR SRP • Lightweight Unlit SRP • Post-Process effects • Alpha-Blended particles • Sprite • Unlit • UI New Samples • SRP Lightweight 2D Fractal • Projectors • XRay • Single Channel Masking by Sarah Akers and David Marshall • Stylized Skybox by BOXOPHOBIC • Melting by Gil Damoiseaux New Shader Functions • Detail Albedo • Fetch Lightmap Value • Lerp White To New Template • Lightweight Unlit SRP New Nodes • Transform Position • Transform Direction Latest Improvements • Amplify Shader Editor now supports Lightweight SRP v1.1.10 via templates. • Support for Specular workflow into Lightweight PBR SRP template. • Templates can now be Multi-Pass. • Amplify Shader Editor is now compatible with Unity 2018. • Official support for Xbox One/PS4/Switch. • Texture Array Creator tool now also creates 3D Textures. • Can create terrain shaders, completely from within ASE without external editing required. • Improved templates loading behavior after hot code reload. • Pragmas, Defines and Includes are now set over a single reorderable list. • Blend, Cull, Stencil, Color Mask and Depth options can now reference properties. • Properties now can have custom attributes. • Improved editor rendering pipeline leading to huge performance boost. • Reduced editor memory allocations resulting on a low Garbage Collector impact. • Editor more snappy and responsive when auto panning and zooming. • Multiple fixes over various nodes, editor and samples. Learn more: Amplify Wiki Discuss here: Unity Forum Thread Shader Samples: Full List The Editor will continue to be improved in future updates, there are a lot more features currently in development. Notable Features • Full source-code • Support for Xbox One/PS4/Switch • Custom Node API • Shader Templates • Shader Functions • Multi
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值