Changeset 354 for trunk/VUT/GtpVisibilityPreprocessor/src/Vector3.cpp
- Timestamp:
- 10/28/05 14:46:59 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/Vector3.cpp
r349 r354 1 1 #include "Matrix4x4.h" 2 2 #include "Vector3.h" 3 #include "Halton.h" 3 4 4 5 float Vector3::sDistTolerance = 0.002f; … … 195 196 UniformRandomVector(const Vector3 &normal) 196 197 { 197 float r1 = RandomValue(0.0f, 1.0f); 198 float r2 = RandomValue(0.0f, 1.0f); 199 float cosTheta = 1.0f - r1; 198 // float r1 = RandomValue(0.0f, 1.0f); 199 // float r2 = RandomValue(0.0f, 1.0f); 200 float r1, r2; 201 202 halton2.GetNext(r1, r2); 203 204 205 float cosTheta = 1.0f - r1; 200 206 float sinTheta = sqrt(1 - sqr(cosTheta)); 201 207 float fi = 2.0f*M_PI*r2;
Note: See TracChangeset
for help on using the changeset viewer.