godot 随机地图6 使用line
在godot中的 canvas item中,几乎所有都有vertex和texture。
自动生成vertex最好的就是line。
一、创建line

鼠标模式为select mode

点两下

修改粗度为50

二、创建 shader

三、给shader 添加 sample
1、添加uniform sample2d

在引擎中会出现改变

2、给noisen1添加noise texture

3、给noise texture 添加noisie

下面分别是分型和扭曲
4、随便乱搞搞,搞出你喜欢的。

四、贴图上去
1、代码

2、什么也没有
因为godot的尿性就是必须用image分配对于texture的大小, 不然不给渲染。

我们选择godot默认的,会有点小,texture的填充模式填拉升。

3、增加一些点
