-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
66 changed files
with
385 additions
and
1,062 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
org.gradle.jvmargs=-Xmx10G | ||
|
||
minecraft_version=1.18.2 | ||
yarn_mappings=1.18.2+build.3 | ||
loader_version=0.13.3 | ||
fabric_version=0.51.1+1.18.2 | ||
config_version=6.2.57 | ||
modmenu_version=3.2.1 | ||
satin_version=1.7.2 | ||
limlib_version=5.2.1 | ||
minecraft_version=1.19 | ||
yarn_mappings=1.19+build.4 | ||
loader_version=0.14.8 | ||
fabric_version=0.58.0+1.19 | ||
config_version=7.0.73 | ||
modmenu_version=4.0.4 | ||
satin_version=1.9.0 | ||
limlib_version=6.3.0 | ||
|
||
mod_version = 1.2.2 | ||
mod_version = 1.2.3 | ||
maven_group = net.ludocrypt | ||
archives_base_name = the-corners |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
src/main/java/net/ludocrypt/corners/access/BlockRenderManagerAccess.java
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
src/main/java/net/ludocrypt/corners/access/ContainsSkyboxBlocksAccess.java
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
src/main/java/net/ludocrypt/corners/access/ItemRendererAccess.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/main/java/net/ludocrypt/corners/client/render/CornerShaders.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package net.ludocrypt.corners.client.render; | ||
|
||
import net.ludocrypt.corners.TheCorners; | ||
import net.ludocrypt.limlib.api.render.LiminalCoreShader; | ||
import net.ludocrypt.limlib.api.render.LiminalQuadRenderer; | ||
import net.ludocrypt.limlib.impl.LimlibRendering; | ||
import net.minecraft.client.render.VertexFormats; | ||
import net.minecraft.util.registry.Registry; | ||
|
||
public class CornerShaders { | ||
|
||
public static final LiminalCoreShader SKYBOX_SHADER = Registry.register(LimlibRendering.LIMINAL_CORE_SHADER, TheCorners.id("skybox"), new LiminalCoreShader(VertexFormats.POSITION)); | ||
public static final LiminalQuadRenderer SKYBOX_QUAD_RENDERER = Registry.register(LimlibRendering.LIMINAL_QUAD_RENDERER, TheCorners.id("skybox"), new SkyboxQuadRenderer()); | ||
|
||
public static void init() { | ||
|
||
} | ||
|
||
} |
51 changes: 51 additions & 0 deletions
51
src/main/java/net/ludocrypt/corners/client/render/SkyboxQuadRenderer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
package net.ludocrypt.corners.client.render; | ||
|
||
import org.jetbrains.annotations.Nullable; | ||
|
||
import com.mojang.blaze3d.systems.RenderSystem; | ||
|
||
import net.ludocrypt.limlib.api.render.LiminalQuadRenderer; | ||
import net.minecraft.block.BlockState; | ||
import net.minecraft.client.render.BufferBuilder; | ||
import net.minecraft.client.render.Camera; | ||
import net.minecraft.client.render.VertexFormat; | ||
import net.minecraft.client.render.VertexFormat.DrawMode; | ||
import net.minecraft.client.render.VertexFormats; | ||
import net.minecraft.client.render.model.BakedModel; | ||
import net.minecraft.client.render.model.BakedQuad; | ||
import net.minecraft.client.util.math.MatrixStack; | ||
import net.minecraft.util.Identifier; | ||
import net.minecraft.util.math.Direction; | ||
import net.minecraft.util.math.Matrix4f; | ||
import net.minecraft.util.math.random.Random; | ||
import net.minecraft.world.World; | ||
|
||
public class SkyboxQuadRenderer extends LiminalQuadRenderer { | ||
|
||
@Override | ||
public void renderQuad(BakedQuad quad, BufferBuilder bufferBuilder, Matrix4f matrix, Camera camera, World world, MatrixStack matrices, BakedModel model, @Nullable BlockState state, @Nullable Direction dir, Random random) { | ||
RenderSystem.setShader(CornerShaders.SKYBOX_SHADER::getShader); | ||
|
||
for (int i = 0; i < 6; i++) { | ||
RenderSystem.setShaderTexture(i, new Identifier(quad.getSprite().getId().getNamespace(), "textures/" + quad.getSprite().getId().getPath() + "_" + i + ".png")); | ||
} | ||
|
||
LiminalQuadRenderer.quad((vec3f) -> bufferBuilder.vertex(vec3f.getX(), vec3f.getY(), vec3f.getZ()).next(), matrix, quad); | ||
} | ||
|
||
@Override | ||
public boolean renderBehind() { | ||
return true; | ||
} | ||
|
||
@Override | ||
public VertexFormat vertexFormat() { | ||
return VertexFormats.POSITION; | ||
} | ||
|
||
@Override | ||
public DrawMode drawMode() { | ||
return DrawMode.QUADS; | ||
} | ||
|
||
} |
2 changes: 1 addition & 1 deletion
2
...lient/render/sky/StrongLiminalShader.java → ...rs/client/render/StrongLiminalShader.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 0 additions & 66 deletions
66
src/main/java/net/ludocrypt/corners/client/render/sky/RemoveSkyboxQuadsBakedModel.java
This file was deleted.
Oops, something went wrong.
78 changes: 0 additions & 78 deletions
78
src/main/java/net/ludocrypt/corners/client/render/sky/SkyboxShaders.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.