增加random shader函数
This commit is contained in:
parent
a444f6b795
commit
355234e75a
4
res/shader/Random.glsl
Normal file
4
res/shader/Random.glsl
Normal 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));
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user