| 187 | } |
| 188 | |
| 189 | int32 ProbeEntry::GetResolution() const |
| 190 | { |
| 191 | auto resolution = ProbeCubemapResolution::UseGraphicsSettings; |
| 192 | if (Type == Types::EnvProbe && Actor) |
| 193 | resolution = ((EnvironmentProbe*)Actor.Get())->CubemapResolution; |
| 194 | else if (Type == Types::SkyLight) |
| 195 | resolution = ProbeCubemapResolution::_128; |
| 196 | if (resolution == ProbeCubemapResolution::UseGraphicsSettings) |
| 197 | resolution = GraphicsSettings::Get()->DefaultProbeResolution; |
| 198 | if (resolution == ProbeCubemapResolution::UseGraphicsSettings) |
| 199 | resolution = ProbeCubemapResolution::_128; |
| 200 | return (int32)resolution; |
| 201 | } |
| 202 | |
| 203 | PixelFormat ProbeEntry::GetFormat() const |
| 204 | { |