History

introducing the depth aware blur

samcake committed 10 years ago

Commit 197d49f1 parent 938bc7712 files · +247 −140Browse files

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

Unified · Split

libraries/render-utils/src/DebugDeferredBuffer.cpp+2−2
@@ -159,7 +159,7 @@ static const std::string DEFAULT_CURVATURE_SHADER{ · 158 unmodified lines
159159 static const std::string DEFAULT_NORMAL_CURVATURE_SHADER{
160160 "vec4 getFragmentColor() {"
161161 //" return vec4(pow(vec3(texture(curvatureMap, uv).a), vec3(1.0 / 2.2)), 1.0);"
162− " return vec4(pow(vec3(texture(curvatureMap, uv).xyz), vec3(1.0 / 2.2)), 1.0);"
162+ " return vec4(vec3(texture(curvatureMap, uv).xyz), 1.0);"
163163 //" return vec4(vec3(1.0 - textureLod(pyramidMap, uv, 3).x * 0.01), 1.0);"
164164 " }"
165165 };
@@ -175,7 +175,7 @@ static const std::string DEFAULT_DIFFUSED_CURVATURE_SHADER{ · 9 unmodified lines
175175 static const std::string DEFAULT_DIFFUSED_NORMAL_CURVATURE_SHADER{
176176 "vec4 getFragmentColor() {"
177177 //" return vec4(pow(vec3(texture(curvatureMap, uv).a), vec3(1.0 / 2.2)), 1.0);"
178− " return vec4(pow(vec3(texture(diffusedCurvatureMap, uv).xyz), vec3(1.0 / 2.2)), 1.0);"
178+ " return vec4(vec3(texture(diffusedCurvatureMap, uv).xyz), 1.0);"
179179 //" return vec4(vec3(1.0 - textureLod(pyramidMap, uv, 3).x * 0.01), 1.0);"
180180 " }"
181181 };