Browse Source

Updated: common.glsl.js

linbingquan 5 years ago
parent
commit
f6ec54a36f
1 changed files with 5 additions and 6 deletions
  1. 5 6
      src/renderers/shaders/ShaderChunk/common.glsl.js

+ 5 - 6
src/renderers/shaders/ShaderChunk/common.glsl.js

@@ -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