| 120 | } |
| 121 | |
| 122 | void ReflectionCaptureObject::GetDesc(EntityDescription& desc) const { |
| 123 | Object::GetDesc(desc); |
| 124 | |
| 125 | const size_t data_size = kLightProbeNumCoeffs * sizeof(float); |
| 126 | std::vector<char> data(data_size); |
| 127 | |
| 128 | memcpy(&data[0], &avg_color, data_size); |
| 129 | desc.AddData(EDF_GI_COEFFICIENTS, data); |
| 130 | } |
| 131 | |
| 132 | bool ReflectionCaptureObject::SetFromDesc(const EntityDescription& desc) { |
| 133 | bool ret = Object::SetFromDesc(desc); |