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
57};57};
58static const std::string DEFAULT_NORMAL_SHADER {58static const std::string DEFAULT_NORMAL_SHADER {
59 "vec4 getFragmentColor() {"59 "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);"
61 " }"61 " }"
62};62};
63static const std::string DEFAULT_DEPTH_SHADER {63static const std::string DEFAULT_DEPTH_SHADER {
@@ -89,6 +89,8 @@ static const std::string DEFAULT_PYRAMID_DEPTH_SHADER { · 25 unmodified lines
89static const std::string DEFAULT_AMBIENT_OCCLUSION_SHADER{89static const std::string DEFAULT_AMBIENT_OCCLUSION_SHADER{
90 "vec4 getFragmentColor() {"90 "vec4 getFragmentColor() {"
91 " return vec4(vec3(texture(occlusionMap, uv).x), 1.0);"91 " 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);"
92 " }"94 " }"
93};95};
94static const std::string DEFAULT_AMBIENT_OCCLUSION_BLURRED_SHADER{96static const std::string DEFAULT_AMBIENT_OCCLUSION_BLURRED_SHADER{