Java Code Examples for com.badlogic.gdx.graphics.g3d.ModelBatch#render()
The following examples show how to use
com.badlogic.gdx.graphics.g3d.ModelBatch#render() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Entity.java From Radix with MIT License | 5 votes |
public void render(ModelBatch batch) { if (model != null) { // TODO: support subtle action. need to create instance every time? ModelInstance instance = new ModelInstance(model); instance.materials.get(0).set(TextureAttribute.createDiffuse(texture)); instance.transform.translate(position.getX(), position.getY(), position.getZ()); batch.render(instance); } }
Example 2
Source File: TerrainChunk.java From gdx-proto with Apache License 2.0 | 5 votes |
public void render(ModelBatch batch, Environment env) { batch.render(modelInstance, env); for (ModelInstance m : sceneObjects) { batch.render(m, env); } }
Example 3
Source File: TranslateTool.java From Mundus with Apache License 2.0 | 4 votes |
@Override public void render(ModelBatch batch) { batch.render(modelInstance); }
Example 4
Source File: RotateTool.java From Mundus with Apache License 2.0 | 4 votes |
@Override public void render(ModelBatch batch) { batch.render(modelInstance); }
Example 5
Source File: ScaleTool.java From Mundus with Apache License 2.0 | 4 votes |
@Override public void render(ModelBatch batch) { batch.render(modelInstance); }
Example 6
Source File: SunRenderer.java From Cubes with MIT License | 4 votes |
private void render(ModelBatch modelBatch) { setWorldTransform(); modelBatch.render(renderable); }
Example 7
Source File: Actor3d.java From Scene3d with Apache License 2.0 | 4 votes |
public void draw(ModelBatch modelBatch, Environment environment){ modelBatch.render(this, environment); }
Example 8
Source File: BaseWorld.java From gdx-ai with Apache License 2.0 | 4 votes |
public void render (final ModelBatch batch, final Environment lights, final Iterable<T> entities) { for (final T e : entities) { batch.render(e.modelInstance, lights); } }
Example 9
Source File: BaseWorld.java From gdx-ai with Apache License 2.0 | 4 votes |
public void render (final ModelBatch batch, final Environment lights, final T entity) { batch.render(entity.modelInstance, lights); }