Ignore:
Timestamp:
12/14/05 15:25:44 (19 years ago)
Author:
bittner
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/src/VssRay.h

    r463 r464  
    4444  Intersectable *mOriginObject; 
    4545  Intersectable *mTerminationObject; 
    46          
     46 
     47  //////////////////////// 
     48  // members related to importance sampling 
     49  // sampling pass in which this ray was generated 
     50  short mPass; 
     51 
     52  // number of cells where this ray made a contribution to the PVS 
     53  short mPvsContribution; 
     54   
     55  // sum of relative ray contributions per object 
     56  float mRelativePvsContribution; 
     57   
    4758  ////////////////////////////// 
    48   VssRay(const Vector3 &origin, 
     59  VssRay( 
     60                 const Vector3 &origin, 
    4961                 const Vector3 &termination, 
    5062                 Intersectable *originObject, 
    51                  Intersectable *terminationObject): 
     63                 Intersectable *terminationObject, 
     64                 const int pass = 0 
     65                 ): 
    5266        mMailbox(-1), 
    5367    mOrigin(origin), 
     
    5670        mTerminationObject(terminationObject), 
    5771        mRefCount(0), 
    58     mFlags(0) 
     72    mFlags(0), 
     73        mPass(pass) 
    5974        //      mT(1.0f) 
    6075  { 
     
    6681        mFlags(0), 
    6782        mMailbox(-1), 
    68         mOriginObject(ray.sourceObject.mObject) 
     83        mOriginObject(ray.sourceObject.mObject), 
     84        mPass(0) 
    6985        //      mT(1.0f) 
    7086        { 
     
    223239                                                                                 ); 
    224240 
     241void 
     242GenerateExtendedConvexCombinationWeights2(float &w1, 
     243                                                                                  float &w2, 
     244                                                                                  const float overlap 
     245                                                                                  ); 
     246 
    225247// -------------------------------------------------------------- 
    226248// For sorting rays 
Note: See TracChangeset for help on using the changeset viewer.