| 13 | #define BLEND_PROPERTY(name) BLEND_BOOL(name) |
| 14 | |
| 15 | void AmbientOcclusionSettings::BlendWith(AmbientOcclusionSettings& other, float weight) |
| 16 | { |
| 17 | const bool isHalf = weight >= 0.5f; |
| 18 | |
| 19 | BLEND_BOOL(Enabled); |
| 20 | BLEND_FLOAT(Intensity); |
| 21 | BLEND_FLOAT(Power); |
| 22 | BLEND_FLOAT(Radius); |
| 23 | BLEND_FLOAT(FadeOutDistance); |
| 24 | BLEND_FLOAT(FadeDistance); |
| 25 | BLEND_ENUM(DepthResolution); |
| 26 | } |
| 27 | |
| 28 | void GlobalIlluminationSettings::BlendWith(GlobalIlluminationSettings& other, float weight) |
| 29 | { |