Changeset 3044


Ignore:
Timestamp:
10/19/08 13:42:41 (16 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/App/Demos/Vis/FriendlyCulling/src
Files:
2 edited

Legend:

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

    r3043 r3044  
    886886        // hack 
    887887        int oldRenderMethod = renderMethod; 
    888  
     888        // for rendering the light view, we use forward rendering 
    889889        if (renderLightView) 
    890890                renderMethod = RenderState::FORWARD; 
     
    903903                glEnable(GL_LIGHTING); 
    904904 
    905                 loader->DisableFragmentProfile(); 
    906                 loader->DisableVertexProfile(); 
    907  
    908905                glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); 
    909906 
     
    922919 
    923920                glDrawBuffers(1, mrt); 
    924  
    925                 loader->DisableFragmentProfile(); 
    926                 loader->DisableVertexProfile(); 
    927921 
    928922                glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); 
     
    940934                glEnable(GL_MULTISAMPLE_ARB); 
    941935                 
    942                 loader->DisableFragmentProfile(); 
    943                 loader->DisableVertexProfile(); 
    944  
    945936                state.SetRenderPassType(RenderState::DEPTH_PASS); 
    946937 
     
    10241015                FrameBufferObject::Release(); 
    10251016 
    1026                 loader->DisableVertexProfile(); 
    1027                 loader->DisableFragmentProfile(); 
     1017                //loader->DisableVertexProfile(); 
     1018                //loader->DisableFragmentProfile(); 
    10281019 
    10291020                if (!ssaoShader) ssaoShader =  
     
    18661857void RenderSky() 
    18671858{ 
    1868         loader->EnableVertexProfile(); 
    1869         loader->EnableFragmentProfile(); 
     1859        //loader->EnableVertexProfile(); 
     1860        //loader->EnableFragmentProfile(); 
    18701861 
    18711862        if ((renderMethod == RENDER_DEFERRED) || (renderMethod == RENDER_DEPTH_PASS_DEFERRED)) 
     
    18781869        preetham->RenderSkyDome(-light->GetDirection(), camera, &state, !useToneMapping); 
    18791870 
    1880         loader->DisableVertexProfile(); 
    1881         loader->DisableFragmentProfile(); 
     1871        state.Reset(); 
    18821872} 
    18831873 
     
    18901880                if (showShadowMap && !renderLightView) 
    18911881                { 
     1882                        state.Reset(); 
     1883 
    18921884                        float minVisibleDist = min(camera->GetFar(), traverser->GetMaxVisibleDistance()); 
    18931885                        RenderShadowMap(minVisibleDist); 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/treeanimation.cg

    r3041 r3044  
    4343        const float pos = (minMaxPos.x - IN.position.z) / (minMaxPos.x - minMaxPos.y); 
    4444 
    45         float factor = pos * windStrength * sin(timer * frequency); 
     45        float factor = pos * pos * windStrength * sin(timer * frequency); 
    4646 
    4747        // transform the vertex position into post projection space 
Note: See TracChangeset for help on using the changeset viewer.