| 69 | } |
| 70 | |
| 71 | bool Run() override |
| 72 | { |
| 73 | Actor* actor = _entry.Actor.Get(); |
| 74 | if (_entry.Type == ProbeEntry::Types::EnvProbe) |
| 75 | { |
| 76 | if (actor) |
| 77 | ((EnvironmentProbe*)actor)->SetProbeData(_data); |
| 78 | } |
| 79 | else if (_entry.Type == ProbeEntry::Types::SkyLight) |
| 80 | { |
| 81 | if (actor) |
| 82 | ((SkyLight*)actor)->SetProbeData(_data); |
| 83 | } |
| 84 | else |
| 85 | { |
| 86 | return true; |
| 87 | } |
| 88 | |
| 89 | ProbesRenderer::OnFinishBake(actor); |
| 90 | return false; |
| 91 | } |
| 92 | }; |
| 93 | |
| 94 | GPU_CB_STRUCT(Data { |
nothing calls this directly
no test coverage detected