@@ -261,8 +261,6 @@ class HMDModel extends MeshPrimitive {
var materialCount = data.indexCounts.length;
var lodLevel = Std.int(curMaterial / data.indexCounts.length);
- if ( lodLevel >= lodCount() )
- return;
if( indexes == null || indexes.isDisposed() )
alloc(engine);
@@ -113,6 +113,8 @@ class Mesh extends Object {
override function emit( ctx : RenderContext ) {
calcScreenRatio(ctx);
+ if ( primitive.screenRatioToLod(curScreenRatio) >= primitive.lodCount() )
+ return;
ctx.emit(material, this);
}
@@ -25,6 +25,8 @@ class MultiMaterial extends Mesh {
for( i in 0...materials.length ) {
var m = materials[i];
if( m != null )