分类shader

This commit is contained in:
2020-05-28 23:19:05 +08:00
parent d841ded4e9
commit e90404ab35
9 changed files with 227 additions and 270 deletions

View File

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