diff --git a/src/main/java/electrosphere/client/foliagemanager/FoliageCell.java b/src/main/java/electrosphere/client/foliagemanager/FoliageCell.java index 16a749da..658aecb3 100644 --- a/src/main/java/electrosphere/client/foliagemanager/FoliageCell.java +++ b/src/main/java/electrosphere/client/foliagemanager/FoliageCell.java @@ -373,22 +373,6 @@ public class FoliageCell { 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 */