}
}));
_passManager = new BasicPassManager();
final RenderPass rootPass = new RenderPass();
rootPass.add(_root);
final TextureState ts = new TextureState();
ts.setEnabled(true);
ts.setTexture(TextureManager.load("images/ardor3d_white_256.jpg", Texture.MinificationFilter.Trilinear, true));
_root.setRenderState(ts);
final MaterialState ms = new MaterialState();
ms.setColorMaterial(ColorMaterial.Diffuse);
_root.setRenderState(ms);
_root.attachChild(createObjects());
bloomRenderPass = new BloomRenderPass(_canvas.getCanvasRenderer().getCamera(), 4);
if (!bloomRenderPass.isSupported()) {
logger.severe("Bloom not supported!");
return;
} else {
bloomRenderPass.add(_root);
// TODO: what?
// bloomRenderPass.setUseCurrentScene(true);
}
// Setup textfields for presenting example info.
final Node textNodes = new Node("Text");
final RenderPass renderPass = new RenderPass();
renderPass.add(textNodes);
textNodes.getSceneHints().setRenderBucketType(RenderBucketType.Ortho);
textNodes.getSceneHints().setLightCombineMode(LightCombineMode.Off);
final double infoStartY = _canvas.getCanvasRenderer().getCamera().getHeight() / 2;
for (int i = 0; i < _exampleInfo.length; i++) {