From efe7768e5b65022b2dd418feff017b97012a6b24 Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 13 Jul 2020 09:33:38 +0800 Subject: *misc --- src/shaders/common/core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/shaders/common/core.c') 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 -- cgit v1.1-26-g67d0