diff options
author | chai <chaifix@163.com> | 2020-07-13 09:33:38 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2020-07-13 09:33:38 +0800 |
commit | efe7768e5b65022b2dd418feff017b97012a6b24 (patch) | |
tree | 7495aad22e54459338439464e2e1f45efd5c2699 /src/shaders/common/core.c | |
parent | cc3f158380415de84745a18f2b0ebc7b3855d60f (diff) |
*misc
Diffstat (limited to 'src/shaders/common/core.c')
-rw-r--r-- | src/shaders/common/core.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shaders/common/core.c b/src/shaders/common/core.c index 703458c..ffaa649 100644 --- a/src/shaders/common/core.c +++ b/src/shaders/common/core.c @@ -20,11 +20,11 @@ Vec2 texsize(Texture* texture) { return size; } -float linear01depth(float depth) { +float linear01Depth(float depth) { float n = _proj_params.x, f = _proj_params.y; return n / ((n-f)*depth + f); } -float lineareyedepth(float depth) { - return _proj_params.y * linear01depth(depth); +float linearEyeDepth(float depth) { + return _proj_params.y * linear01Depth(depth); }
\ No newline at end of file |