Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (Node node : modelInstance.nodes) {
- for (NodePart part : node.parts) {
- program.begin();
- program.setUniformMatrix("u_projTrans", camera.combined);
- Mesh mesh = part.meshPart.mesh;
- ColorAttribute diffuse = (ColorAttribute) part.material.get(ColorAttribute.Diffuse);
- program.setUniformf("diffuseColor", diffuse.color);
- mesh.render(program, GL20.GL_TRIANGLES);
- program.end();
- }
Advertisement
Add Comment
Please, Sign In to add comment