|
@@ -1,10 +1,9 @@
|
|
export default /* glsl */`
|
|
export default /* glsl */`
|
|
-#define PI 3.14159265359
|
|
|
|
-#define PI2 6.28318530718
|
|
|
|
-#define PI_HALF 1.5707963267949
|
|
|
|
-#define RECIPROCAL_PI 0.31830988618
|
|
|
|
-#define RECIPROCAL_PI2 0.15915494
|
|
|
|
-#define LOG2 1.442695
|
|
|
|
|
|
+#define PI 3.141592653589793
|
|
|
|
+#define PI2 6.283185307179586
|
|
|
|
+#define PI_HALF 1.5707963267948966
|
|
|
|
+#define RECIPROCAL_PI 0.3183098861837907
|
|
|
|
+#define RECIPROCAL_PI2 0.15915494309189535
|
|
#define EPSILON 1e-6
|
|
#define EPSILON 1e-6
|
|
|
|
|
|
#ifndef saturate
|
|
#ifndef saturate
|