360个cube使用同一个RenderableInstance
This commit is contained in:
parent
60ebcaefe0
commit
9adadc3a6e
@ -136,9 +136,11 @@ private:
|
|||||||
|
|
||||||
const Vector3f axis(0,0,1);
|
const Vector3f axis(0,0,1);
|
||||||
|
|
||||||
|
RenderableInstance *ri=db->CreateRenderableInstance(pipeline_line,descriptor_sets,ro_cube);
|
||||||
|
|
||||||
for(uint i=0;i<360;i++)
|
for(uint i=0;i<360;i++)
|
||||||
{
|
{
|
||||||
render_root.Add(db->CreateRenderableInstance(pipeline_line,descriptor_sets,ro_cube),
|
render_root.Add(ri,
|
||||||
rotate(i/5.0f,axis)*
|
rotate(i/5.0f,axis)*
|
||||||
translate(i/4.0f,0,0)*
|
translate(i/4.0f,0,0)*
|
||||||
scale((i+1)/100.0f));
|
scale((i+1)/100.0f));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user