Ignore:
Timestamp:
11/25/06 04:07:13 (18 years ago)
Author:
mattausch
Message:

implemented dirty pvs and lazy update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellBsp.cpp

    r1789 r1790  
    26942694        for (it = rays.begin(); it != it_end; ++ it) 
    26952695        { 
    2696                 int contribution = 0; 
     2696                float contribution = 0; 
    26972697                Ray *ray = (*it)->mRay; 
    26982698                float relContribution; 
     
    27072707                                                                                                   //relContribution); 
    27082708                 
    2709                 if (contribution) 
    2710                 { 
    2711                         sampleContributions += contribution; 
     2709                if (contribution >  0) 
     2710                { 
     2711                        sampleContributions += (int)contribution; 
    27122712                        ++ contributingSamples; 
    27132713                } 
Note: See TracChangeset for help on using the changeset viewer.