------------------------------------------------------------------- @brief Progress callback for post-processing steps * @param numberOfSteps The number of total post-processing * steps * @param currentStep The index of the current post-processing * step that will run, or equal to numberOfSteps if all of * them has finished. This number is always strictly monotone
| 119 | * increasing, although not necessarily linearly. |
| 120 | * */ |
| 121 | virtual void UpdatePostProcess(int currentStep /*= 0*/, int numberOfSteps /*= 0*/) { |
| 122 | float f = numberOfSteps ? currentStep / (float)numberOfSteps : 1.0f; |
| 123 | Update( f * 0.5f + 0.5f ); |
| 124 | } |
| 125 | |
| 126 | |
| 127 | // ------------------------------------------------------------------- |