I've added that method. Please download the latest beta jar.

I've added support for a new uniform called "projectionMatrix" to the beta jar. The model view matrix can be calculated like this (unoptimized):Code: [Select]Matrix mc=new Matrix();Matrix mv=obj.getWorldTransformation();mc.setTo(world.getCamera().getBack());SimpleVector v=world.getCamera().getPosition();v.scalarMul(-1);mc.translate(v);mv.matMul(mc);

Matrix mc=new Matrix();Matrix mv=obj.getWorldTransformation();mc.setTo(world.getCamera().getBack());SimpleVector v=world.getCamera().getPosition();v.scalarMul(-1);mc.translate(v);mv.matMul(mc);

private Matrix calcModelViewMatrix(World world, Object3D object) { Camera cam = world.getCamera(); Matrix mc = new Matrix(); Matrix modelView = object.getWorldTransformation(); Matrix backMatrix = cam.getBack(); mc.setTo(backMatrix); SimpleVector v = cam.getPosition(); v.scalarMul(-1); modelView.translate(v); modelView.matMul(mc); return modelView; }