void Render(World world, FractalRenderState state, FractalSystemNode node) { ((TreeVer4_Ultra)node)?.SetColors(trunkBlock, branchBlock, leafSetup.leaf); ((TreeVer4_Ultra)node)?.SetLeaf(leafSetup); node.Express(world, ref state); foreach (FractalSystemNode child in node.child) { Render(world, state, child); } }
void RenderNodeRec(FractalRenderState state, FractalSystemNode node) { node.Express( vertices, ref verticesCount, //Vertices indices, ref indicesCount, //Indices normals, ref normalsCount, //Normals uvs, uv2s, uv3s, uv4s, //TexCoord(uv) tangents, ref tmp, //Tangents ref state); foreach (FractalSystemNode child in node.child) { RenderNodeRec(state, child); } }