Changeset 3340 for GTP/trunk/App/Demos
- Timestamp:
- 04/10/09 17:22:56 (16 years ago)
- Location:
- GTP/trunk/App/Demos/Vis/FriendlyCulling
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/DeferredRenderer.cpp
r3338 r3340 796 796 void DeferredRenderer::ComputeSsao(FrameBufferObject *fbo, float tempCohFactor) 797 797 { 798 PrintGLerror("here5");799 800 798 GLuint colorsTex, normalsTex, attribsTex; 801 799 … … 813 811 attribsTex = fbo->GetColorBuffer(2)->GetTexture(); 814 812 815 PrintGLerror("here6");816 817 813 ///////// 818 814 //-- flip flop between illumination buffers … … 820 816 GLuint oldSsaoTex = mIllumFbo->GetColorBuffer(2 - mIllumFboIndex)->GetTexture(); 821 817 822 PrintGLerror("here809");823 824 818 glPushAttrib(GL_VIEWPORT_BIT); 825 819 glViewport(0, 0, mIllumFbo->GetWidth(), mIllumFbo->GetHeight()); 826 827 PrintGLerror("here45");828 820 829 821 // read the second buffer, write to the first buffer 830 822 mIllumFbo->Bind(); 831 823 glDrawBuffers(2, mrt + mIllumFboIndex); 832 833 PrintGLerror("here8");834 824 835 825 int i = 0; … … 1093 1083 1094 1084 DrawQuad(sCgFilterSsaoProgram); 1095 PrintGLerror(" combinessao");1085 PrintGLerror("filter ssao"); 1096 1086 } 1097 1087 -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaderenv.h
r3331 r3340 5 5 //////////// 6 6 //-- ssao + gi parameters 7 7 8 #define NUM_PRECOMPUTED_SAMPLES 4096 8 9 … … 68 69 #define DEPTH_THRESHOLD 1e10f 69 70 71 #define PERFORMANCE_TEST 1 70 72 71 73 #endif // __SHADERENV_H -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/deferred.cg
r3332 r3340 353 353 ); 354 354 #else 355 355 356 const float2 pValid = float2(0,0); 357 356 358 #endif 357 359 -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/ssao.cg
r3339 r3340 393 393 394 394 ++ numSamples; 395 395 396 #ifdef PERFORMANCE_TEST 396 397 // check if the samples have been valid in the last frame … … 497 498 //const float radiusMult = kernelRadius * invw; 498 499 499 #ifdef PERFORMANCE_TEST 500 #if 1 501 //#ifdef PERFORMANCE_TEST 500 502 501 503 float3 diffVec = tex2Dlod(attribsTex, float4(IN.texCoord, 0, 0)).xyz; … … 537 539 if (eyeSpaceDepth < DEPTH_THRESHOLD) 538 540 { 539 if ( 0)541 if (1) 540 542 { 541 543 ao = ssao(IN, colors, noiseTex, samples, normal, eyeSpacePos.xyz, … … 555 557 } 556 558 557 #ifdef PERFORMANCE_TEST 559 #if 1 560 //#ifdef PERFORMANCE_TEST 558 561 559 562 /////////// -
GTP/trunk/App/Demos/Vis/FriendlyCulling/toto.txt
r3296 r3340 210 210 211 211 fix normals!! 212 213 214 test against old version 215 index + Q in same channel 216 217 make ambient first then ao then diffuse!!
Note: See TracChangeset
for help on using the changeset viewer.