save full SceneNode in RenderNode,added length sort.

This commit is contained in:
2024-08-02 23:17:07 +08:00
parent 7f074c6c79
commit 3768507169
9 changed files with 73 additions and 31 deletions

View File

@@ -9,12 +9,14 @@ namespace hgl
{
class Renderable;
class MaterialInstance;
class SceneNode;
struct RenderNode
{
Matrix4f local_to_world;
SceneNode *scene_node;
Renderable *ri;
Vector3f world_position;
float to_camera_distance;
};
using RenderNodeList=List<RenderNode>;