mirror of
https://github.com/darksaid98/Flashback.git
synced 2026-12-01 14:38:50 +00:00
Public Release
This commit is contained in:
1 parent
666398e480
commit
61bb497a22
126 files changed
+8435
-1240
No files matched your search
@@ -0,0 +1,23 @@
|
||||
package com.moulberry.flashback.visuals;
|
||||
|
||||
import com.mojang.blaze3d.vertex.PoseStack;
|
||||
import com.moulberry.flashback.Flashback;
|
||||
import com.moulberry.flashback.playback.ReplayServer;
|
||||
import com.moulberry.flashback.state.EditorState;
|
||||
import com.moulberry.flashback.state.EditorStateManager;
|
||||
import net.minecraft.client.Camera;
|
||||
import net.minecraft.client.renderer.GameRenderer;
|
||||
import net.minecraft.client.renderer.LightTexture;
|
||||
import org.joml.Matrix4f;
|
||||
|
||||
public class WorldRenderHook {
|
||||
|
||||
public static void renderHook(PoseStack poseStack, float partialTick, boolean renderBlockOutline, Camera camera, GameRenderer gameRenderer,
|
||||
LightTexture lightTexture, Matrix4f projection) {
|
||||
ReplayServer replayServer = Flashback.getReplayServer();
|
||||
EditorState editorState = EditorStateManager.getCurrent();
|
||||
if (replayServer != null && editorState != null && !Flashback.isExporting() && editorState.replayVisuals.cameraPath) {
|
||||
CameraPath.renderCameraPath(poseStack, camera, replayServer);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user