Showing the changes to libraries/render-utils/src/DebugDeferredBuffer.cpp (1 of 6 files). Show all
Unified · Split
| @@ -57,7 +57,7 @@ static const std::string DEFAULT_ROUGHNESS_SHADER { · 56 unmodified lines | ||
| 57 | 57 | }; |
| 58 | 58 | static const std::string DEFAULT_NORMAL_SHADER { |
| 59 | 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 | }; |
| 63 | 63 | static const std::string DEFAULT_DEPTH_SHADER { |
| @@ -89,6 +89,8 @@ static const std::string DEFAULT_PYRAMID_DEPTH_SHADER { · 25 unmodified lines | ||
| 89 | 89 | static const std::string DEFAULT_AMBIENT_OCCLUSION_SHADER{ |
| 90 | 90 | "vec4 getFragmentColor() {" |
| 91 | 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 | }; |
| 94 | 96 | static const std::string DEFAULT_AMBIENT_OCCLUSION_BLURRED_SHADER{ |