Ignore:
Timestamp:
11/26/08 20:45:11 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/DeferredRenderer.cpp

    r3168 r3175  
    498498                                                          DirectionalLight *light, 
    499499                                                          bool useToneMapping, 
     500                                                          bool useAntiAliasing, 
    500501                                                          ShadowMap *shadowMap 
    501502                                                          ) 
     
    511512        { 
    512513                // downsample fbo buffers 
    513                 // colors 
    514                 //DownSample(fbo, colorBufferIdx, mDownSampleFbo, 0, sCgScaleDepthProgram); 
    515514                PrepareSsao(fbo); 
    516                 //DownSample(fbo, 1, mDownSampleFbo, 1, sCgDownSampleProgram); // normals 
    517                 //DownSample(fbo, 2, mDownSampleFbo, 2, sCgDownSampleProgram); // offsets 
    518515        } 
    519516 
     
    544541        } 
    545542 
    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 
    552550 
    553551        glEnable(GL_LIGHTING); 
Note: See TracChangeset for help on using the changeset viewer.