| 271 | } |
| 272 | |
| 273 | void PostProcessSettings::Serialize(SerializeStream& stream, const void* otherObj) |
| 274 | { |
| 275 | SERIALIZE_GET_OTHER_OBJ(PostProcessSettings); |
| 276 | |
| 277 | stream.JKEY("AO"); |
| 278 | stream.Object(&AmbientOcclusion, other ? &other->AmbientOcclusion : nullptr); |
| 279 | |
| 280 | stream.JKEY("GI"); |
| 281 | stream.Object(&GlobalIllumination, other ? &other->GlobalIllumination : nullptr); |
| 282 | |
| 283 | stream.JKEY("Bloom"); |
| 284 | stream.Object(&Bloom, other ? &other->Bloom : nullptr); |
| 285 | |
| 286 | stream.JKEY("ToneMapping"); |
| 287 | stream.Object(&ToneMapping, other ? &other->ToneMapping : nullptr); |
| 288 | |
| 289 | stream.JKEY("ColorGrading"); |
| 290 | stream.Object(&ColorGrading, other ? &other->ColorGrading : nullptr); |
| 291 | |
| 292 | stream.JKEY("EyeAdaptation"); |
| 293 | stream.Object(&EyeAdaptation, other ? &other->EyeAdaptation : nullptr); |
| 294 | |
| 295 | stream.JKEY("CameraArtifacts"); |
| 296 | stream.Object(&CameraArtifacts, other ? &other->CameraArtifacts : nullptr); |
| 297 | |
| 298 | stream.JKEY("LensFlares"); |
| 299 | stream.Object(&LensFlares, other ? &other->LensFlares : nullptr); |
| 300 | |
| 301 | stream.JKEY("DepthOfField"); |
| 302 | stream.Object(&DepthOfField, other ? &other->DepthOfField : nullptr); |
| 303 | |
| 304 | stream.JKEY("MotionBlur"); |
| 305 | stream.Object(&MotionBlur, other ? &other->MotionBlur : nullptr); |
| 306 | |
| 307 | stream.JKEY("SSR"); |
| 308 | stream.Object(&ScreenSpaceReflections, other ? &other->ScreenSpaceReflections : nullptr); |
| 309 | |
| 310 | stream.JKEY("AA"); |
| 311 | stream.Object(&AntiAliasing, other ? &other->AntiAliasing : nullptr); |
| 312 | |
| 313 | stream.JKEY("PostFxMaterials"); |
| 314 | stream.Object(&PostFxMaterials, other ? &other->PostFxMaterials : nullptr); |
| 315 | } |
| 316 | |
| 317 | void PostProcessSettings::Deserialize(DeserializeStream& stream, ISerializeModifier* modifier) |
| 318 | { |