增加random shader函数

This commit is contained in:
hyzboy 2019-11-20 19:52:26 +08:00
parent a444f6b795
commit 355234e75a

4
res/shader/Random.glsl Normal file
View File

@ -0,0 +1,4 @@
vec3 random(vec2 uv) // from Godot 3.2
{
return vec3(fract(sin(dot(uv,vec2(12.9898,78.233)))*43758.5453123));
}