From: Terri00 Date: Thu, 7 Mar 2019 20:20:45 +0000 (+0000) Subject: Gamma corrected height shader (thanks Yanzl) X-Git-Url: https://skaterift.com/git/?a=commitdiff_plain;h=06b4e1c72b780dabeabe77118a3081d26a39f1e2;p=tar-legacy.git Gamma corrected height shader (thanks Yanzl) --- diff --git a/MCDV/shaders/depth.fs b/MCDV/shaders/depth.fs index c3c8d5f..24fc069 100644 --- a/MCDV/shaders/depth.fs +++ b/MCDV/shaders/depth.fs @@ -14,7 +14,6 @@ in float Alpha; void main() { - float height = (Depth - HEIGHT_MIN) / HEIGHT_MAX; - + float height = pow((Depth - HEIGHT_MIN) / HEIGHT_MAX, 2.2); FragColor = vec4(height, height, height, Alpha); } \ No newline at end of file