From d02ffca772a9b4504c4440a43286bfaf6cbea97c Mon Sep 17 00:00:00 2001 From: KillzXGaming Date: Sun, 24 Nov 2019 14:59:54 -0500 Subject: [PATCH] GFBModel shader improvements --- Toolbox/Shader/GFBModel.frag | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Toolbox/Shader/GFBModel.frag b/Toolbox/Shader/GFBModel.frag index 50d0576d..a0ec3464 100644 --- a/Toolbox/Shader/GFBModel.frag +++ b/Toolbox/Shader/GFBModel.frag @@ -115,7 +115,7 @@ void main() vert.tangent = tangent; vert.binormal = binormal; - float specIntensity = 1; + float specIntensity = 0.5f; // Wireframe color. if (colorOverride == 1) @@ -192,13 +192,10 @@ void main() fragColor.rgb += emissionTerm; - // Global brightness adjustment. - fragColor.rgb *= 4.5; - fragColor.rgb *= min(boneWeightsColored, vec3(1)); // HDR tonemapping - fragColor.rgb = fragColor.rgb / (fragColor.rgb + vec3(1.0)); +// fragColor.rgb = fragColor.rgb / (fragColor.rgb + vec3(1.0)); // Convert back to sRGB. fragColor.rgb = pow(fragColor.rgb, vec3(1 / gamma));