Ignore:
Timestamp:
07/09/08 03:05:23 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r2802 r2825  
    1313#include "Geometry.h" 
    1414#include "RenderState.h" 
     15#include "Material.h" 
    1516#include "gzstream.h" 
    1617 
     
    10301031 
    10311032 
    1032 void Bvh::RenderBoundsForViz(BvhNode *node, bool useTightBounds) 
     1033void Bvh::RenderBoundsForViz(BvhNode *node, RenderState *state, bool useTightBounds) 
    10331034{ 
    10341035        glDisable(GL_TEXTURE_2D); 
    10351036        glDisable(GL_LIGHTING); 
    10361037        glColor3f(1, 1, 1); 
    1037          
     1038 
     1039        // hack: for deferred shading we have to define a material 
     1040        static Material boxMat; 
     1041        boxMat.SetEmmisive(RgbaColor(1.0f, 1.0f, 1.0f, 1.0f)); 
     1042 
     1043        boxMat.Render(state); 
     1044 
    10381045        if (!useTightBounds) 
    10391046        { 
Note: See TracChangeset for help on using the changeset viewer.