Ignore:
Timestamp:
08/19/08 11:38:08 (16 years ago)
Author:
mattausch
Message:

using sample_to_coverage instead of alpha

File:
1 edited

Legend:

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

    r2850 r2851  
    8888        { 
    8989                mCullFaceEnabled = true; 
    90                 //glEnable(GL_CULL_FACE); 
     90                glEnable(GL_CULL_FACE); 
    9191        } 
    9292 
     
    9494        { 
    9595                mAlphaTestEnabled = false; 
    96                 glDisable(GL_ALPHA_TEST); 
     96                 
     97                // not needed with GL_SAMPLE_ALPHA_TO_COVERAGE_ARB 
     98                //glDisable(GL_ALPHA_TEST); 
     99                glDisable(GL_SAMPLE_ALPHA_TO_COVERAGE_ARB); 
    97100        } 
    98101        else if (!mAlphaTestEnabled && alphaTest) 
    99102        { 
    100103                mAlphaTestEnabled = true; 
    101                 glEnable(GL_ALPHA_TEST); 
     104                 
     105                // not needed with GL_SAMPLE_ALPHA_TO_COVERAGE_ARB 
     106                //glEnable(GL_ALPHA_TEST); 
     107                glEnable(GL_SAMPLE_ALPHA_TO_COVERAGE_ARB); 
    102108        } 
    103109 
Note: See TracChangeset for help on using the changeset viewer.