use of io.xol.chunkstories.renderer.terrain.HeightmapArrayTexture in project chunkstories by Hugobros3.
the class WorldRendererImplementation method renderWorld.
public void renderWorld(RenderingInterface renderingInterface) {
((HeightmapArrayTexture) summariesTexturesHolder).update();
// if(RenderingConfig.doDynamicCubemaps)
// cubemapRenderer.renderWorldCubemap(renderingInterface,
// renderBuffers.rbEnvironmentMap, 128, true);
// Step one, set the camera to the proper spot
CameraInterface mainCamera = renderingInterface.getCamera();
EntityControllable entity = world.getClient().getPlayer().getControlledEntity();
if (entity != null)
entity.setupCamera(renderingInterface);
animationTimer = ((float) (System.currentTimeMillis() & 0x7FFF)) / 100.0f;
// TODO remove entirely
FakeImmediateModeDebugRenderer.setCamera(mainCamera);
chunksRenderer.updatePVSSet(mainCamera);
// Prepare matrices
mainCamera.setupUsingScreenSize(gameWindow.getWidth(), gameWindow.getHeight());
this.renderWorldInternal(renderingInterface);
}
Aggregations