use of com.gempukku.libgdx.graph.shader.property.MapWritablePropertyContainer in project gdx-graph by MarcinSc.
the class Episode11Scene method createModels.
private void createModels(GraphModels models) {
ModelBuilder modelBuilder = new ModelBuilder();
Model forceField = modelBuilder.createRect(0, 10, 10, 0, -10, 10, 0, -10, -10, 0, 10, -10, 0, 0, 1, new Material(), VertexAttributes.Usage.Position);
disposables.add(forceField);
Model sphere = modelBuilder.createSphere(4f, 4f, 4f, 50, 50, new Material(), VertexAttributes.Usage.Position);
disposables.add(sphere);
ModelInstance forceFieldInstance = new ModelInstance(forceField);
sphereInstance = new ModelInstance(sphere);
CommonPropertiesModelInstanceModelAdapter forceFieldAdapter = new CommonPropertiesModelInstanceModelAdapter(forceFieldInstance, models, new MapWritablePropertyContainer());
forceFieldAdapter.addTag("force-field");
CommonPropertiesModelInstanceModelAdapter sphereAdapter = new CommonPropertiesModelInstanceModelAdapter(sphereInstance, models, new MapWritablePropertyContainer());
sphereAdapter.addTag("default");
sphereInstance.transform.idt().translate(-3f, 0, 0);
}
Aggregations