16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-19 00:59:18 +02:00

Remove NodeLODController

This commit is contained in:
2026-03-26 16:47:11 +01:00
parent 007ddd017e
commit f6db9978d2
2 changed files with 1 additions and 13 deletions

View File

@@ -30,17 +30,5 @@ struct LODController
double RangeMax;
};
/// <summary>
/// Component for entities that can be rendered with LOD
/// </summary>
/// <remarks>
/// Has higher priority as it's for node objects
/// </remarks>
struct NodeLODController
{
double RangeMin;
double RangeMax;
};
} // namespace ECSComponent
#endif // EU07_RENDERCOMPONENTS_H

View File

@@ -437,7 +437,7 @@ state_serializer::deserialize_node( cParser &Input, scene::scratch_data &Scratch
nodeTransform.Rotation = Scratchpad.location.rotation;
//nodeTransform.Scale = Scratchpad.location.scale;
auto lodController = CS.AddComponent<ECSComponent::NodeLODController>(CSEntity);
auto lodController = CS.AddComponent<ECSComponent::LODController>(CSEntity);
lodController.RangeMax = nodedata.range_max;
lodController.RangeMin = nodedata.range_min;