Skip to content

Commit

Permalink
Framebuffer (got lazy)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatMG393 committed Jan 17, 2025
1 parent 0d14837 commit 3918e93
Show file tree
Hide file tree
Showing 10 changed files with 76 additions and 86 deletions.
5 changes: 0 additions & 5 deletions src/main/java/com/thatmg393/legacyvkm/breeze3d/VDrawer.java

This file was deleted.

11 changes: 0 additions & 11 deletions src/main/java/com/thatmg393/legacyvkm/breeze3d/VRenderer.java

This file was deleted.

63 changes: 0 additions & 63 deletions src/main/java/com/thatmg393/legacyvkm/breeze3d/image/VTexture.java

This file was deleted.

This file was deleted.

20 changes: 20 additions & 0 deletions src/main/java/com/thatmg393/legacyvkm/mixins/gl/FramebufferM.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package com.thatmg393.legacyvkm.mixins.gl;

import org.spongepowered.asm.mixin.*;

import net.minecraft.client.gl.Framebuffer;

@Mixin(Framebuffer.class)
public class FramebufferM {
@Overwrite
public void bind(boolean viewport) { }

@Overwrite
public void unbind() { }

@Overwrite
public void drawInternal(int width, int height, boolean color) { }

@Overwrite
public void clear() { }
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.thatmg393.legacyvkm.mixins.render;
package com.thatmg393.legacyvkm.mixins.gl;

import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Overwrite;
Expand All @@ -12,4 +12,9 @@ public class GLXM {
public static void createContext() {
LegacyVulkanMod.LOGGER.info("GL Capabilities all max!!");
}

@Overwrite
public static boolean supportsFbo() {
return true;
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.thatmg393.legacyvkm.mixins.render;
package com.thatmg393.legacyvkm.mixins.gl;

import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Overwrite;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package com.thatmg393.legacyvkm.mixins.render.chunks;

import org.spongepowered.asm.mixin.Mixin;

import net.minecraft.client.render.Tessellator;

@Mixin(Tessellator.class)
public class TessellatorM {

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package com.thatmg393.legacyvkm.mixins.render.world;

import org.spongepowered.asm.mixin.*;

import net.minecraft.client.render.WorldRenderer;

@Mixin(WorldRenderer.class)
@SuppressWarnings("")
public class WorldRendererM {
@Overwrite
public void setupEntityOutlineShader() {

}
}
25 changes: 25 additions & 0 deletions src/main/java/com/thatmg393/vulkan/framebuffer/Framebuffer.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package com.thatmg393.vulkan.framebuffer;

import org.joml.Vector4f;

public class Framebuffer {
public Framebuffer(Builder builder) {

}





@lombok.Builder
public static class Builder {
private int width, height;

private boolean hasDepthAttachment;
private int depthAttachment;
private int colorAttachment;

@lombok.Builder.Default
private Vector4f clearColor = new Vector4f(1.0, 1.0, 1.0, 0.0);
}
}

0 comments on commit 3918e93

Please sign in to comment.