- Timestamp:
- 11/26/08 20:45:11 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/DeferredRenderer.cpp
r3168 r3175 498 498 DirectionalLight *light, 499 499 bool useToneMapping, 500 bool useAntiAliasing, 500 501 ShadowMap *shadowMap 501 502 ) … … 511 512 { 512 513 // downsample fbo buffers 513 // colors514 //DownSample(fbo, colorBufferIdx, mDownSampleFbo, 0, sCgScaleDepthProgram);515 514 PrepareSsao(fbo); 516 //DownSample(fbo, 1, mDownSampleFbo, 1, sCgDownSampleProgram); // normals517 //DownSample(fbo, 2, mDownSampleFbo, 2, sCgDownSampleProgram); // offsets518 515 } 519 516 … … 544 541 } 545 542 546 // as multisampling is difficult / costly with deferred shading, 547 // at least do some antialiasing 548 //AntiAliasing(fbo, light); 549 550 // just output the latest buffer 551 Output(fbo); 543 // multisampling is difficult / costly with deferred shading 544 // at least do some edge blurring 545 546 if (useAntiAliasing) 547 AntiAliasing(fbo, light); 548 else 549 Output(fbo); // just output the latest buffer 552 550 553 551 glEnable(GL_LIGHTING);
Note: See TracChangeset
for help on using the changeset viewer.