| 77 | #endif |
| 78 | |
| 79 | Model::Model(const SpawnParams& params, const AssetInfo* info) |
| 80 | : ModelBase(params, info, StreamingGroups::Instance()->Models()) |
| 81 | { |
| 82 | if (EnableModelSDF == 0 && GPUDevice::Instance) |
| 83 | { |
| 84 | bool enable = GPUDevice::Instance->GetFeatureLevel() >= FeatureLevel::SM5; |
| 85 | #if !USE_EDITOR |
| 86 | enable &= GraphicsSettings::Get()->EnableGlobalSDF; |
| 87 | #if !BUILD_RELEASE |
| 88 | if (!enable) |
| 89 | LOG(Info, "Not using Model SDFs"); |
| 90 | #endif |
| 91 | #endif |
| 92 | EnableModelSDF = enable ? 1 : 2; |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | bool Model::HasAnyLODInitialized() const |
| 97 | { |
nothing calls this directly
no test coverage detected