summaryrefslogtreecommitdiff
path: root/src/shaders/common/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shaders/common/core.c')
-rw-r--r--src/shaders/common/core.c6
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