History

And cleaning again hopping to have the pr build

samcake committed 10 years ago

Commit 07c630b2 parents 35ea04a 379c8826 files · +37 −18Browse files

Showing the changes to libraries/render-utils/src/DebugDeferredBuffer.cpp (1 of 6 files). Show all

Unified · Split

libraries/render-utils/src/DebugDeferredBuffer.cpp+3−1
@@ -57,7 +57,7 @@ static const std::string DEFAULT_ROUGHNESS_SHADER { · 56 unmodified lines
5757 };
5858 static const std::string DEFAULT_NORMAL_SHADER {
5959 "vec4 getFragmentColor() {"
60− " return vec4(normalize(texture(normalMap, uv).xyz), 1.0);"
60+ " return vec4(normalize(texture(normalMap, uv).xyz * 2.0 - vec3(1.0)), 1.0);"
6161 " }"
6262 };
6363 static const std::string DEFAULT_DEPTH_SHADER {
@@ -89,6 +89,8 @@ static const std::string DEFAULT_PYRAMID_DEPTH_SHADER { · 25 unmodified lines
8989 static const std::string DEFAULT_AMBIENT_OCCLUSION_SHADER{
9090 "vec4 getFragmentColor() {"
9191 " return vec4(vec3(texture(occlusionMap, uv).x), 1.0);"
92+ // When drawing color " return vec4(vec3(texture(occlusionMap, uv).xyz), 1.0);"
93+ // when drawing normal " return vec4(normalize(texture(occlusionMap, uv).xyz * 2.0 - vec3(1.0)), 1.0);"
9294 " }"
9395 };
9496 static const std::string DEFAULT_AMBIENT_OCCLUSION_BLURRED_SHADER{