Sets up our radiosity run
| 102 | |
| 103 | // Sets up our radiosity run |
| 104 | void InitRadiosityRun() { |
| 105 | rad_TotalFlux = 0.0f; |
| 106 | rad_StepCount = 0; |
| 107 | rad_DoneCalculating = 0; |
| 108 | |
| 109 | // Clear key buffer |
| 110 | // ddio_KeyFrame(); |
| 111 | ddio_KeyFlush(); |
| 112 | |
| 113 | CountElements(); |
| 114 | CalculateArea(); |
| 115 | InitExitance(); |
| 116 | |
| 117 | if (Shoot_method == SM_HEMICUBE) { |
| 118 | SetupFormFactors(); |
| 119 | InitHemicube(Hemicube_resolution); |
| 120 | } |
| 121 | } |
| 122 | |
| 123 | // Initalizes memory for form factors |
| 124 | void SetupFormFactors() { |
no test coverage detected