forked from LeenkxTeam/LNXSDK
Batch Meshes
This commit is contained in:
@ -71,6 +71,7 @@ class MeshBatch {
|
|||||||
if (b.meshes.length > 0 && b.meshes[0].cullMaterial(context)) continue;
|
if (b.meshes.length > 0 && b.meshes[0].cullMaterial(context)) continue;
|
||||||
|
|
||||||
var scontext = b.shader.getContext(context);
|
var scontext = b.shader.getContext(context);
|
||||||
|
if (scontext == null) continue;
|
||||||
g.setPipeline(scontext.pipeState);
|
g.setPipeline(scontext.pipeState);
|
||||||
// #if lnx_deinterleaved // TODO
|
// #if lnx_deinterleaved // TODO
|
||||||
// g.setVertexBuffers(b.vertexBuffers);
|
// g.setVertexBuffers(b.vertexBuffers);
|
||||||
|
|||||||
Reference in New Issue
Block a user