diff options
author | Sebastian Park <SebPark03@gmail.com> | 2024-05-09 23:18:46 -0400 |
---|---|---|
committer | Sebastian Park <SebPark03@gmail.com> | 2024-05-09 23:18:46 -0400 |
commit | f9819ae7f8b11b298c16eb14d929a9c09038a877 (patch) | |
tree | cef7f0c104d49d41a1e2c76bec2343f875ca8dff /resources/shaders/color.frag | |
parent | ac3f1e423e696392ea0a50c2652b829e5c5734b6 (diff) | |
parent | 99c588d4da2ca044df8276b7efbd9d27c19c8352 (diff) |
Merge branch 'shaders'
Diffstat (limited to 'resources/shaders/color.frag')
-rw-r--r-- | resources/shaders/color.frag | 15 |
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); } |