MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / InitRadiosityRun

Function InitRadiosityRun

editor/rad_init.cpp:104–121  ·  view source on GitHub ↗

Sets up our radiosity run

Source from the content-addressed store, hash-verified

102
103// Sets up our radiosity run
104void 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
124void SetupFormFactors() {

Callers 1

DoRadiosityRunFunction · 0.85

Calls 6

ddio_KeyFlushFunction · 0.85
CountElementsFunction · 0.85
CalculateAreaFunction · 0.85
InitExitanceFunction · 0.85
SetupFormFactorsFunction · 0.85
InitHemicubeFunction · 0.85

Tested by

no test coverage detected