919293949596979899100101
Scene scene = manager.bufferedScene(); Random random = state.random; Ray ray = state.ray; int width = scene.canvasWidth(); int height = scene.canvasHeight(); double halfWidth = width/(2.0*height); // calculate pixel bounds for this job