remove dead method
This commit is contained in:
parent
ce8261aa13
commit
742c606540
@ -373,22 +373,6 @@ public class FoliageCell {
|
|||||||
return new Quaterniond().rotationX(-Math.PI / 2.0f).rotateLocalY(Math.PI * placementRandomizer.nextFloat()).normalize();
|
return new Quaterniond().rotationX(-Math.PI / 2.0f).rotateLocalY(Math.PI * placementRandomizer.nextFloat()).normalize();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Makes an already created entity a drawable, instanced entity (client only) by backing it with an InstancedActor
|
|
||||||
* @param entity The entity
|
|
||||||
* @param modelPath The model path for the model to back the instanced actor
|
|
||||||
* @param capacity The capacity of the instanced actor to draw
|
|
||||||
*/
|
|
||||||
public static void makeEntityTextureInstancedFoliage(Entity entity, String modelPath, int capacity){
|
|
||||||
entity.putData(EntityDataStrings.INSTANCED_ACTOR, Globals.clientInstanceManager.createInstancedActor(modelPath, vertexPath, fragmentPath, attributes, capacity));
|
|
||||||
entity.putData(EntityDataStrings.DATA_STRING_POSITION, new Vector3d(0,0,0));
|
|
||||||
entity.putData(EntityDataStrings.DATA_STRING_ROTATION, new Quaterniond().identity());
|
|
||||||
entity.putData(EntityDataStrings.DATA_STRING_SCALE, new Vector3f(1,1,1));
|
|
||||||
entity.putData(EntityDataStrings.DRAW_SOLID_PASS, true);
|
|
||||||
Globals.clientScene.registerEntity(entity);
|
|
||||||
Globals.clientScene.registerEntityToTag(entity, EntityTags.DRAW_INSTANCED_MANAGED);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Draws all entities in the foliage cell
|
* Draws all entities in the foliage cell
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user