13 lines
250 B
PHP
Raw Normal View History

2022-06-25 11:52:00 +08:00
// 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 )