Ignore:
Timestamp:
07/07/08 10:52:03 (16 years ago)
Author:
mattausch
Message:

worked on deferred shading

File:
1 edited

Legend:

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

    r2816 r2818  
    11#include "RenderState.h" 
    2 #include "glInterface.h" 
    32#include "Geometry.h" 
    43#include "Material.h" 
     
    76namespace CHCDemoEngine  
    87{ 
     8 
     9CGprofile RenderState::sCgFragmentProfile; 
     10CGprofile RenderState::sCgVertexProfile;  
    911 
    1012 
     
    3436                        glDisable(GL_LIGHTING); 
    3537                        glColorMask(GL_FALSE, GL_FALSE, GL_FALSE, GL_FALSE); 
     38 
     39                        cgGLDisableProfile(sCgFragmentProfile); 
     40                        cgGLDisableProfile(sCgVertexProfile); 
    3641                } 
    3742 
     
    4954                        glEnable(GL_LIGHTING); 
    5055                        glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE); 
     56 
     57                        cgGLEnableProfile(sCgFragmentProfile); 
     58                        cgGLEnableProfile(sCgVertexProfile); 
    5159                } 
    5260 
     
    6876        { 
    6977                mAlphaTestEnabled = true; 
    70                 //glEnable(GL_ALPHA_TEST); 
     78                glEnable(GL_ALPHA_TEST); 
    7179        } 
    7280 
Note: See TracChangeset for help on using the changeset viewer.