diff options
Diffstat (limited to 'math.cginc')
| -rw-r--r-- | math.cginc | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -13,6 +13,11 @@ // At w=1, this returns n1. #define MY_BLEND_NORMALS(n0, n1, w) normalize(float3((n0.xy * (1 - w) + n1.xy * w), lerp(1, n0.z, (1-w)) * lerp(1, n1.z, w))) +float golden_lds(uint i) +{ + return glsl_mod(1.61803398875 * float(i), 1); +} + // Complex numbers typedef float2 complex; |
