summaryrefslogtreecommitdiff
path: root/resources/shaders/color.frag
diff options
context:
space:
mode:
authorSebastian Park <SebPark03@gmail.com>2024-05-09 17:32:19 -0400
committerSebastian Park <SebPark03@gmail.com>2024-05-09 17:32:19 -0400
commitf1230ea24dc87a3bb5c9c709d4571e3298d7d07f (patch)
tree99773c557a199bf8f79a84e9cb711d7dae55dfa1 /resources/shaders/color.frag
parent3d9a55316dbcfb2ca1f32f5554d1948fcabb5d74 (diff)
Render normals to the ocean floor.
Diffstat (limited to 'resources/shaders/color.frag')
-rw-r--r--resources/shaders/color.frag15
1 files changed, 8 insertions, 7 deletions
diff --git a/resources/shaders/color.frag b/resources/shaders/color.frag
index fe70983..7c41c89 100644
--- a/resources/shaders/color.frag
+++ b/resources/shaders/color.frag
@@ -13,16 +13,16 @@ in float intensity;
//uniform float intExp = 0.5f;
//uniform float scale = 1.f;
-uniform float multiplier = .9f;
-uniform float contrast = 20.f;
-uniform float intExp = 0.f;
-uniform float scale = 1.f;
-
-//uniform float multiplier = .5f;
-//uniform float contrast = 1.5f;
+//uniform float multiplier = .9f;
+//uniform float contrast = 20.f;
//uniform float intExp = 0.f;
//uniform float scale = 1.f;
+uniform float multiplier = .5f;
+uniform float contrast = 1.5f;
+uniform float intExp = 0.f;
+uniform float scale = 1.f;
+
//uniform vec4 baseColor =vec4();
void main() {
@@ -39,4 +39,5 @@ void main() {
finalInt = clamp(finalInt, 0, 1);
fragColor = vec4(1, 1, 1, finalInt * scale);
// fragColor = vec4(vec3(1), pow(oldArea / newArea * .2f, 1.5f));
+ fragColor = vec4((normal_worldSpace + 1) / 2, 1.f);
}