// Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd. // common module // constant value #define PI 3.14159265359 #define PI2 6.28318530718 #define EPSILON 1e-6 #define LOG2 1.442695 // common function #define saturate(a) clamp( a, 0.0, 1.0 )