刚开始学习Amplify shader editor,很多节点只知道单独用法,但是不清楚连接节点以后是什么作用。开始学习,希望能坚持。
BTW,很感谢学习过程中的朋友,老师的帮助,帮我解决了很多很多问题!!
这个是Example里面的节点图。说一下我自己的理解。
最开始我非常不能理解为什么需要用两个remap,和两次oneminus。各有各自的作用。
先分析一下如何做这个Dissolve Burn效果。首先我们需要一张类似噪声图,作为遮罩,这样低于clip的部分将会被切掉。其次我们需要一张有颜色的burn map,我们想要将这张图的颜色用我们的遮罩的图片的UV去采样到颜色,然后添加到Emission一起输出出去,这样看起来就好像有发光的边缘,就类似burn effect了。
做遮罩的过程跟shadergraph一样的,我们需要一个滑块来控制这张图的显示与消失。比如我们想要,滑块为0的时候,整个图是的显示的,滑块为1的时候,整个图就完全消失了。
一开始就想,只要把滑块加入到我们的要的dissolve的图就好了。只不过这样的话会发现在最后我们操控shader的时候没有办法使得当滑块为0时,整个图是完全显示的。
我们用remap将滑块的值重新映射。可以看到