removed PushConstants at SceneNode/RenderList

This commit is contained in:
2020-11-26 17:51:59 +08:00
parent f57a7afb74
commit 4bd4a9b898
5 changed files with 73 additions and 33 deletions

View File

@@ -18,7 +18,7 @@ namespace hgl
using FilterSceneNodeFunc=bool (*)(const SceneNode *,void *); ///<场景节点过滤函数重定义
bool FrustumClipFilter(const SceneNode *,void *); ///<平截头截减过滤函数
bool FrustumClipFilter(const SceneNode *,void *); ///<平截头截函数
/**
* 场景节点数据类<br>
@@ -40,7 +40,7 @@ namespace hgl
ObjectList<SceneNode> SubNode; ///<子节点
List<RenderableInstance *> renderable_instances; ///<可渲染实例
List<RenderableInstance *> renderable_instances; ///<可渲染实例
public:
@@ -74,7 +74,7 @@ namespace hgl
void Add(SceneNode *n){if(n)SubNode.Add(n);} ///<增加一个子节点
void ClearSubNode(){SubNode.ClearData();} ///<清除子节点
void Add(RenderableInstance *ri){if(ri)renderable_instances.Add(ri);} ///<增加渲染实例
void Add(RenderableInstance *ri){if(ri)renderable_instances.Add(ri);} ///<增加渲染实例
void Add(RenderableInstance *ri,const Matrix4f &mat)
{