| 25 | // --------------------------------------------------------------------------------------------------------------------- |
| 26 | |
| 27 | BakedReflectionsData::BakedReflectionsData(const BakedDataIdentifier& identifier, |
| 28 | int numProbes, |
| 29 | bool hasConvolution, |
| 30 | bool hasParametric) |
| 31 | : mIdentifier(identifier) |
| 32 | , mHasConvolution(hasConvolution) |
| 33 | , mHasParametric(hasParametric) |
| 34 | , mNeedsUpdate(numProbes) |
| 35 | { |
| 36 | if (hasConvolution) |
| 37 | { |
| 38 | mEnergyFields.resize(numProbes); |
| 39 | } |
| 40 | |
| 41 | if (hasParametric) |
| 42 | { |
| 43 | mReverbs.resize(numProbes); |
| 44 | } |
| 45 | |
| 46 | for (auto i = 0; i < numProbes; ++i) |
| 47 | { |
| 48 | mNeedsUpdate[i] = true; |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | BakedReflectionsData::BakedReflectionsData(const BakedDataIdentifier& identifier, |
| 53 | int numProbes, |