Ignore:
Timestamp:
12/22/05 01:36:06 (19 years ago)
Author:
mattausch
Message:

changed render simulator (probability that view cell is crossed)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/src/RssPreprocessor.cpp

    r475 r477  
    176176  if (!use2dSampling) { 
    177177        Vector3 normal; 
    178         int i = (int)RandomValue(0, mObjects.size()-1); 
     178        int i = (int)RandomValue(0, (Real)((int)mObjects.size()-1)); 
    179179        Intersectable *object = mObjects[i]; 
    180180        object->GetRandomSurfacePoint(point, normal); 
Note: See TracChangeset for help on using the changeset viewer.