MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Model

Method Model

Source/Engine/Content/Assets/Model.cpp:79–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77#endif
78
79Model::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
96bool Model::HasAnyLODInitialized() const
97{

Callers

nothing calls this directly

Calls 3

InstanceClass · 0.70
GetFunction · 0.50
GetFeatureLevelMethod · 0.45

Tested by

no test coverage detected