From 7cdf39f51b47553af89c3de5b86d33ded4b5cdd2 Mon Sep 17 00:00:00 2001 From: yum Date: Fri, 8 Aug 2025 19:14:38 -0700 Subject: Add cloth lobe & IBL DFG LUTs - add monte carlo integrator to produce the luts - fix layer energy integration; should be multiplicative, not additive --- math.cginc | 1 + 1 file changed, 1 insertion(+) (limited to 'math.cginc') diff --git a/math.cginc b/math.cginc index 0d59121..af71fc6 100644 --- a/math.cginc +++ b/math.cginc @@ -3,6 +3,7 @@ #define PI 3.14159265358979f #define RCP_PI (1.0f / PI) +#define TAU (2.0f * PI) float sin_noise_3d(float3 uvw) { return sin(uvw[0]) * sin(uvw[1]) * sin(uvw[2]); -- cgit v1.2.3