Fancy Background Shader
This commit is contained in:
parent
d1945375c4
commit
4221f304f1
18 changed files with 698 additions and 398 deletions
|
|
@ -19,25 +19,7 @@
|
|||
// https://github.com/ashima/webgl-noise
|
||||
//
|
||||
|
||||
float3 mod289(float3 x)
|
||||
{
|
||||
return x - floor(x / 289.0) * 289.0;
|
||||
}
|
||||
|
||||
float2 mod289(float2 x)
|
||||
{
|
||||
return x - floor(x / 289.0) * 289.0;
|
||||
}
|
||||
|
||||
float3 permute(float3 x)
|
||||
{
|
||||
return mod289((x * 34.0 + 1.0) * x);
|
||||
}
|
||||
|
||||
float3 taylorInvSqrt(float3 r)
|
||||
{
|
||||
return 1.79284291400159 - 0.85373472095314 * r;
|
||||
}
|
||||
#include "SimplexNoise2D.cginc"
|
||||
|
||||
float2 snoise_grad(float2 v)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue