- Timestamp:
- 11/18/08 12:30:49 (16 years ago)
- Location:
- GTP/trunk/App/Demos/Vis/FriendlyCulling/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/DeferredRenderer.cpp
r3134 r3135 286 286 mSamplingMethod(SAMPLING_POISSON), 287 287 mShadingMethod(DEFAULT), 288 mIllumFboIndex(0), 289 invTrafo(IdentityMatrix()) 288 mIllumFboIndex(0) 290 289 { 291 290 /////////// … … 441 440 /////////// 442 441 443 const float filterWidth = 10.0f;442 const float filterWidth = 50.0f; 444 443 445 444 #if 1 … … 512 511 513 512 // antialiasing of the color buffer 514 AntiAliasing(fbo, light);513 //AntiAliasing(fbo, light); 515 514 516 515 switch (mShadingMethod) … … 538 537 } 539 538 539 AntiAliasing(fbo, light); 540 540 541 Output(fbo); 541 542 -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/DeferredRenderer.h
r3132 r3135 60 60 static int colorBufferIdx; 61 61 62 Matrix4x4 invTrafo;63 62 64 63 protected: -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp
r3134 r3135 1132 1132 shadingMethod = DeferredRenderer::DEFAULT; 1133 1133 1134 deferredShader->invTrafo = invTrafo;1135 1134 deferredShader->SetShadingMethod(shadingMethod); 1136 1135 deferredShader->SetSamplingMethod(samplingMethod); -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/combineSsao.cg
r3134 r3135 62 62 } 63 63 64 #define USE_POSITION64 //#define USE_POSITION 65 65 66 66 float DiscontinuityFilter(float2 texCoord, … … 109 109 #endif 110 110 normalFactor = max(step(0.6f, dot(sampleNorm, norm)), 1e-3f); 111 convergenceFactor = min( 60.0f, aoSample.y) * 0.01f;//max(step(18.5f, aoSample.y), 1e-3f);111 convergenceFactor = min(100.0f, aoSample.y) * 0.01f;//max(step(18.5f, aoSample.y), 1e-3f); 112 112 113 113 w = filterWeights[i] * normalFactor * depthFactor * convergenceFactor; … … 176 176 //ao.x = DiscontinuityFilter(IN.texCoord, ao, ssaoTex, normalsTex, filterOffs, filterWeights, adaptFactor * scaleFactor / (adaptFactor + ao.y), 0); 177 177 178 if (ao.y < 60.5f) ao.x = DiscontinuityFilter(IN.texCoord, ao, ssaoTex, normalsTex, filterOffs, filterWeights, scaleFactor, bl, br, tl, tr);178 if (ao.y < 50.5f) ao.x = DiscontinuityFilter(IN.texCoord, ao, ssaoTex, normalsTex, filterOffs, filterWeights, ao.z, bl, br, tl, tr); 179 179 //ao.x = DiscontinuityFilter(IN.texCoord, ao, ssaoTex, normalsTex, filterOffs, filterWeights, 1, 0); 180 180 } … … 189 189 // if (ao.y < 10.5f) OUT.illum_col.xyz = float3(0, 10000, 0); 190 190 //OUT.illum_col = float4(dummy3, dummy3, dummy3, col.w); 191 OUT.illum_col = float4(ao.x, ao.x, ao.x, col.w);191 //OUT.illum_col = float4(ao.x, ao.x, ao.x, col.w); 192 192 193 193 //OUT.illum_col.xyz = float3(1.0f - ao.x, dummy2, 0);//dummy2);
Note: See TracChangeset
for help on using the changeset viewer.