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
159static const std::string DEFAULT_NORMAL_CURVATURE_SHADER{159static const std::string DEFAULT_NORMAL_CURVATURE_SHADER{
160 "vec4 getFragmentColor() {"160 "vec4 getFragmentColor() {"
161 //" return vec4(pow(vec3(texture(curvatureMap, uv).a), vec3(1.0 / 2.2)), 1.0);"161 //" 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);"
163 //" return vec4(vec3(1.0 - textureLod(pyramidMap, uv, 3).x * 0.01), 1.0);"163 //" return vec4(vec3(1.0 - textureLod(pyramidMap, uv, 3).x * 0.01), 1.0);"
164 " }"164 " }"
165};165};
@@ -175,7 +175,7 @@ static const std::string DEFAULT_DIFFUSED_CURVATURE_SHADER{ · 9 unmodified lines
175static const std::string DEFAULT_DIFFUSED_NORMAL_CURVATURE_SHADER{175static const std::string DEFAULT_DIFFUSED_NORMAL_CURVATURE_SHADER{
176 "vec4 getFragmentColor() {"176 "vec4 getFragmentColor() {"
177 //" return vec4(pow(vec3(texture(curvatureMap, uv).a), vec3(1.0 / 2.2)), 1.0);"177 //" 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);"
179 //" return vec4(vec3(1.0 - textureLod(pyramidMap, uv, 3).x * 0.01), 1.0);"179 //" return vec4(vec3(1.0 - textureLod(pyramidMap, uv, 3).x * 0.01), 1.0);"
180 " }"180 " }"
181};181};