projects
/
tar-legacy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e2687b
)
Gamma corrected height shader (thanks Yanzl)
author
Terri00
<thrustmediaproductions@gmail.com>
Thu, 7 Mar 2019 20:20:45 +0000
(20:20 +0000)
committer
Terri00
<thrustmediaproductions@gmail.com>
Thu, 7 Mar 2019 20:20:45 +0000
(20:20 +0000)
MCDV/shaders/depth.fs
patch
|
blob
|
history
diff --git
a/MCDV/shaders/depth.fs
b/MCDV/shaders/depth.fs
index c3c8d5fa9bd7db4b2069ef6d97dec7562b1e0942..24fc06936b8d7882540d323dfcc5c37eb84b1d37 100644
(file)
--- 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