mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 09:19:18 +02:00
Remove NodeLODController
This commit is contained in:
@@ -30,17 +30,5 @@ struct LODController
|
|||||||
double RangeMax;
|
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
|
} // namespace ECSComponent
|
||||||
#endif // EU07_RENDERCOMPONENTS_H
|
#endif // EU07_RENDERCOMPONENTS_H
|
||||||
|
|||||||
@@ -437,7 +437,7 @@ state_serializer::deserialize_node( cParser &Input, scene::scratch_data &Scratch
|
|||||||
nodeTransform.Rotation = Scratchpad.location.rotation;
|
nodeTransform.Rotation = Scratchpad.location.rotation;
|
||||||
//nodeTransform.Scale = Scratchpad.location.scale;
|
//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.RangeMax = nodedata.range_max;
|
||||||
lodController.RangeMin = nodedata.range_min;
|
lodController.RangeMin = nodedata.range_min;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user