use of org.terasology.rendering.dag.nodes.OutputToHMDNode in project Terasology by MovingBlocks.
the class WorldRendererImpl method addOutputNodes.
private void addOutputNodes(RenderGraph renderGraph) {
Node finalPostProcessingNode = renderGraph.findNode("engine:finalPostProcessingNode");
Node outputToVRFrameBufferNode = new OutputToHMDNode(context);
renderGraph.addNode(outputToVRFrameBufferNode, "outputToVRFrameBufferNode");
renderGraph.connect(finalPostProcessingNode, outputToVRFrameBufferNode);
Node outputToScreenNode = new OutputToScreenNode(context);
renderGraph.addNode(outputToScreenNode, "outputToScreenNode");
renderGraph.connect(finalPostProcessingNode, outputToScreenNode);
}
Aggregations