| 9 | |
| 10 | template<typename ModelType, typename DrawInfoType> |
| 11 | FORCE_INLINE bool ModelDrawTransition(ModelType* model, const DrawInfoType& info) |
| 12 | { |
| 13 | for (auto& e : *info.Buffer) |
| 14 | { |
| 15 | if (e.Material && EnumHasAllFlags(e.Material->GetInfo().FeaturesFlags, MaterialFeaturesFlags::DitheredLODTransition)) |
| 16 | return true; |
| 17 | } |
| 18 | for (auto& e : model->MaterialSlots) |
| 19 | { |
| 20 | if (e.Material && EnumHasAllFlags(e.Material->GetInfo().FeaturesFlags, MaterialFeaturesFlags::DitheredLODTransition)) |
| 21 | return true; |
| 22 | } |
| 23 | return false; |
| 24 | } |
| 25 | |
| 26 | template<typename ModelType, typename DrawInfoType, typename ContextType> |
| 27 | FORCE_INLINE void ModelDraw(ModelType* model, const RenderContext& renderContext, const ContextType& context, const DrawInfoType& info) |
no test coverage detected