每个人都是杰夫约翰逊的创造者 everyone this is Jeff Johnson creator of
在过去的一周我做过天气预报工作 weather maker over the last week I've
花了近100个小时在极光上 spent nearly 100 hours on an aurora
北极星着色器一直很有挑战性 borealis shader it's been challenging
虽然很累但我很累 and tiring but I think is good enough to
现在释放给大家所以这就是 release to all of you now so this is the
快速教程视频，告诉你如何 quick tutorial video to show you how to
使用它让我们潜入是否 use it let's dive right in on whether
制作预制全屏效果 make your prefab full screen effects
云我们有Aurora配置文件和 clouds we have the Aurora profile and an
动画持续时间这些很漂亮 animation duration these are pretty
简单，让我们继续看看 simple so let's go ahead and look at
这个家伙只是极光的方式 this guy by the way the Aurora only
如果你试图展示，它会在晚上出现 shows up at night if you try to show it
在白天它没有出现所以让我们 at daytime it doesn't show up so let's
继续看看我们的个人资料 go ahead and look at our profile we've
设置为none，这意味着什么都不显示我 set to none which means show nothing I'm
要将其切换为默认值 going to switch it to the default
简介和10个过程 profile and over the course of 10
秒钟和我们的北极星会 seconds and over our borealis will
动画然后继续转动它 animate right in go ahead and turn this
帆布在那里，我们没事，所以现在我们 canvas off there we go okay so now we
在我们的屏幕上有一个北极光 have an aurora borealis in our screen
它基本上是一些不错的垂直 it's just basically some nice vertical
噪音灯柱不是100％ noise lights pillars it's not 100%
身体准确，但你认为 physically accurate but do you think
它足够好并且渲染得很漂亮 it's good enough and it renders pretty
快，所以我决定和我一起去 fast so I've decided to go with what I
来到这里让我们来看看Aurora got here let's take a look at the Aurora
我们将向您展示所有内容 profile and we'll show you what all
这些参数做样本计数是 these parameters do sample count is the
雷穿过噪音场和 Ray march through the noise field and
子样本计数适用于每个点 the sub sample count is for every point
射线标记了多少个八度的噪音 ray marked how many octaves of noise to
计算，你降低这个Aurora compute as you lower this the Aurora
当你提高时，变得不那么详细了 becomes less detailed and as you raise
它变得更加详细了 it it becomes more detailed the
动画速度滚动和摆动 animation speed scrolls and wobbles the
Aurora所以让我们把它设置为1 Aurora so let's set this to 1 you'll
注意它现在正在移动它你可以移动它 notice it's moving now you can move it
那样的 that way as well
或者你可以为极光设置动画 or you can animate the Aurora in place
哪种只是做了一点点 which kind of just does a little bit of
一个摆动，它实际上并没有滚动 a wobble it's not actually scrolling
它只是一种随机化的方式 it's just kind of randomizing in place
三月规模控制了雷的方式 the March scale controls how the Ray
三月在噪音领域移动 March moves through the noise field so
当你提出这个时，awara就会变成 as you raise this the awara will become
更多的拉伸或更多的细节 more stretched or more detail that's
可能有点太多了 probably a little too much probably what
你想做的是提高一个而不是 you want to do is raise one and not the
其他那样你会得到一些不错的长 other that way you get some nice long
再次伸展你可能会注意到一些 stretching again you may notice some
如果你去，绑扎和通常的扭曲 banding and usual distortions if you go
对那些但不同的人来说太高了 too high on those but with different
你可以获得相当长的参数 parameters you can get quite a nice long
伸展aurorus好然后当然 stretch aurorus okay and then of course
y值也只是如何控制 the y-value also just controls how
你可以在噪音领域游行 marches through the noise field you can
看到极光转向大多是绿色的 see the Aurora's turning mostly green
你会明白为什么会发生这样的事情 and you'll see why that's happening in a
第二，但首先让我们来看看形状 second but first let's look at shape
尺度和细节比例因此形状是 scale and detail scale so the shape is
Aurora的整体造型如此 the overall shape of the Aurora so as
你降低这个极光会变得更多 you lower this Aurora will become more
缩小让我们看看我能不能得到它 zoomed out let's see if I can get it
真的很小所以现在我们已经有了一点点 really small so now we've got and a tiny
当你提高噪音的补丁标记 patch marks of noise as you raise that
价值一直到顶级亲爱的战争 value all the way to the top dear war
变得非常扭曲和分散 becomes really distorted and spread out
但你也注意到了一些文物 but you also notice some artifacts of
绑扎所以你可能不想去 banding so you probably don't want to go
那么高，所以我要离开那个 that high so I'm gonna leave that at
那一点默认好的细节 that one point for default ok the detail
规模并没有真正控制翘曲 scale doesn't really control the warping
就像那种内在的个体一样 so much as the kind of inner individual
形状，所以你可以看到我提高了 shape so you can see as I raise that the
或多或少保持相同的形状 or more or less stays the same shape it
只是变得更加详细 just becomes more detailed within that
形状再次随着这些价值的增加而变高 shape and again as these values get high
你有一些乐队正在进行 you've got some banding going on so
请注意，但我认为 watch out for that but I think the
默认值可能非常好 defaults are probably pretty good so
除非你对你有特定的影响 unless you have a specific effect you
希望实现你可以离开那些 want to achieve you can just leave those
我们来看看渐变 as is let's take a look at the gradient
所以这里左边的梯度是 so the gradient on the left here is the
极光在高度0然后一直 Aurora at height 0 and then all the way
在右边是高度1所以我们走了 on the right is height 1 so let's go
提前并挑选一些这些渐变 ahead and pick some of these gradients
如果你，你可以看到他们这样做了 and you can see what they do so if you
只是想要一种蓝色的极光你会 just wanted kind of a blue Aurora you'll
注意我们得到了这个错误 notice that we get this error at the
底部 bottom
说颜色渐变必须有四个键 says color gradient must have four keys
而对于阿尔法键，所以这个没有 and for alpha keys so this one does not
显然所以它不会这样工作 obviously so it's not gonna work so it
期望每个键有四个 expects there to be four of each key and
就是这个人所做的就是这样 that's what this one does so let's just
继续前进并滑动这些我和我 go ahead and slide these around and I
我可以向你展示他们的行动 can show you what they do so as I move
这一年战争开始了 this away the year war is beginning to
变得更蓝，如果我把它们放回去 become more blue and if I put those back
并以这种方式滑动并变得更多 and slide this way and becomes more
绿色然后你当然可以 green and then of course you we can
如果我们想要它，改变这种颜色 change this colored if we want it to be
更黄，所以让我们解释一下 more yellow and so let's explain what
这些控制点基本上意味着 these control points means so basically
就在这里的中心 right here in the center of this
梯度是高度50％的极光 gradient that's the aurora at height 50%
所以就在这里的某个地方 so somewhere right about here so as the
极光越高，你就可以拥有 aurora gets higher you can have the
颜色改变我看了很多 colors change I've looked at a lot of
Aurora和他们的图片和视频 pictures and videos of Aurora's and they
所有人似乎都有多种颜色和 all seem to have multiple colors and as
他们变得更高，它改变了新的 they gets higher it changes the new
颜色所以我在这里添加了这个渐变 color so I added this gradient here to
能够让你控制好 be able to let you control that alright
所以只需要总结一下梯度就需要四个 so just sum up the gradient needs four
alpha的控制点和4的控制点 control points for alpha and four for
颜色好吧让我们继续前进Aurora color alright let's move on Aurora
强度很简单只是控制 intensity is pretty simple just controls
极光是多么强烈的力量 how intense the aurora is the power
在淡出时控制强度 controls the intensity as it fades out
所以你只能提高能量 so as you ratchet that power up only
强度巨大的地区将继续存在 areas of immense intensity will continue
展示，其他任何东西都会得到 to show and anything else will get
缩小了这么大的功率 zoomed out so a power much higher than
16可能不会显示 16 is probably not going to show
任何事情都要保持低一点 anything so keep that a little bit lower
高度褪色功率控制如何 the height fade power controls how the
极光在极光的顶部褪色 aurora fades at the top of the aurora so
让我们告诉你它是如何工作的 let's show you how that works as you
提出这个极光渐渐消失了 raised this the aurora fades out less at
顶部和你降低极光 the top and as you lower that the aurora
逐渐消失 fades down more
顶部所以你可以看到它的到来 the top so you can see it kind of coming
如果你不想要光环，那就下来吧 down so if you don't want the aura to
褪色只是一直向上滑动 fade just slide that all the way up and
现在这个极光并没有真正消失 now this Aurora is not really fading at
所有和你的外观这可能是什么 all and for your look this might be what
你想要但我喜欢默认值和 you want but I like the defaults and
我们要把所有这些都归还给他们 we're gonna put all these back to their
默认没关系 defaults okay
高度是类似的 the height is the similar to the
体积云它是最小/最大值 volumetric clouds it's a min/max value
极光噪声场就像你一样 of the Aurora noise field so as you
降低Aurora的最小值 lower the min value the Aurora will come
让我们把它改成500 down let's just change this to 500
你会发现它在我们之上是正确的 you'll see that it's right on top of us
这看起来并不那么好 which doesn't really look that great so
让我们把它放回来但是试试吧 let's put that back but let's try
我们提高了30,000 raising this up to say 30,000 ow we're
再次拉伸Aurora stretching the Aurora more but again as
你可能会看到它太大了 you make this too large you might see
一些条带，所以我试图选择一个 some banding so I've tried to pick a
非常明智的范围10至20,000 pretty sensible range 10 to 20,000
世界空间单位，它看起来很漂亮 worldspace units and it looks pretty
好，所以你可以留下它 good so you may just leave it at that
好吧，距离淡化控制如何 all right the distance fade controls how
如果远极那么极光就会消失 the aurora fades if it's far away so at
在地平线上你会看到空战没有 the horizon you'll see the air Wars not
低于地平线，但他们 going below the horizon but as they
现在你看到它低于 lower that now you see it below the
地平线，所以你可以随意调整 horizon so you feel free to tweak that
如果你想要你的Aurora's下面 if you want your Aurora's to go below
如果，地平线好了 the horizon all right did the ring if
你看到你可以提出的条带 you do see banding you can raise
显然，你不想去 dithering obviously you don't want to go
太高了，因为它看起来很糟糕 too high on that because it looks bad
但如果你看到，请随意提出 but feel free to raise that if you see
捆绑它有助于我把它留下漂亮 banding it helps out I've left it pretty
如果你看到，你可以提高 low but you can up that if you see
在你的光环中划出极光会 banding in your aura the aurora will
在配置文件之间动画，所以我要去 animate between profiles so I'm going to
切换到弹性轮廓，现在 switch to the stretchy profile and now
你会看到它改变了什么 you're gonna see it change to something
多一点扭曲并散开它 a little more twisted and spread out it
这是在10秒钟内完成的 does it over the course of 10 seconds so
现在我们有一点点长条 now we've got a little bit longer strips
它看起来非常好动画 and it looks pretty pretty good animates
无缝地，然后当然，如果你 seamlessly and then of course if you
希望它消失只是设置配置文件 want it to go away just set the profile
没有，你的战争会慢慢来 to none and your war will slowly
消失 disappear
好吧，我认为这几乎就是这样 okay I think that's pretty much it for
北极光和天气预报机我 the aurora borealis and weather maker I
希望你喜欢这个视频感谢 hope you enjoyed this video thanks for
看你是否有任何问题 watching if you have any questions
请在数字支持处给我发电子邮件 please email me at support at digital
Ruby comm，我很乐意帮忙 Ruby comm and I would love to help
再见，再见 thanks bye bye