Changeset 446 for trunk/VUT/GtpVisibilityPreprocessor/src/VssRay.cpp
- Timestamp:
- 12/04/05 20:19:50 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/VssRay.cpp
r438 r446 155 155 return GetDirParam(axis, dir); 156 156 } 157 158 159 void 160 GenerateExtendedConvexCombinationWeights(float &w1, 161 float &w2, 162 float &w3, 163 const float overlap 164 ) 165 { 166 w1 = RandomValue(-overlap, 1.0f + overlap); 167 w2 = RandomValue(-overlap, 1.0f + overlap); 168 w3 = RandomValue(-overlap, 1.0f + overlap); 169 170 float c = 1.0f/(w1 + w2 + w3); 171 w1 *= c; 172 w2 *= c; 173 w3 *= c; 174 }
Note: See TracChangeset
for help on using the changeset viewer.