Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Commit

Permalink
well, shader failed
Browse files Browse the repository at this point in the history
  • Loading branch information
KrLite committed Jan 29, 2023
1 parent 68698f6 commit bc5f74f
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
11 changes: 11 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ group = project.maven_group

repositories {
maven { url "https://jitpack.io" }
maven {
name "Ladysnake Mods"
url "https://ladysnake.jfrog.io/artifactory/mods"
content {
includeGroup "io.github.ladysnake"
includeGroupByRegex "io\\.github\\.onyxstudios.*"
}
}
}

dependencies {
Expand All @@ -22,6 +30,9 @@ dependencies {

/* Mixbox */
implementation include("com.scrtwpns:mixbox:2.0.0")

/* Satin */
modImplementation include("io.github.ladysnake:satin:${satin_version}")
}

processResources {
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ archives_base_name = equator-lib-1.19.3
# Dependencies
fabric_version = 0.71.0+1.19.3
eu_version = v1.1.15
satin_version = 1.10.0
2 changes: 1 addition & 1 deletion src/main/java/net/krlite/equator/EquatorLib.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
public class EquatorLib implements ModInitializer {
public static final String MOD_ID = "equator";
public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);
public static final boolean DEBUG = false;
public static final boolean DEBUG = true;

@Override
public void onInitialize() {
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/net/krlite/equator/debug/CanvasScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,17 @@ public void renderCanvas(MatrixStack matrixStack, int mouseX, int mouseY, float
*/

/*
float ratio = (float) EasingFunctions.sinNormal();
new Equator.Painter(matrixStack).paint(Rect.fullScreen().topHalf().tint(PreciseColor.BLUE.mix(PreciseColor.YELLOW, ratio)))
.paint(Rect.fullScreen().bottomHalf().tint(PreciseColor.BLUE.blend(PreciseColor.YELLOW, ratio)))
.paintLine(Node.leftTopScreen().tint(PreciseColor.BLUE), Node.rightBottomScreen().tint(PreciseColor.YELLOW), 8, true);
new Equator.Writer(matrixStack).writeCentered(Text.literal("Real Pigment Mixing"), PreciseColor.BLUE.mix(PreciseColor.YELLOW, ratio).lighter(), Node.topScreen().shift(0, 20).toVec3d())
.writeCentered(Text.literal("RGB Blending"), PreciseColor.BLUE.blend(PreciseColor.YELLOW, ratio).lighter(), Node.bottomScreen().shift(0, -20).toVec3d());
*/

new Equator.Painter(matrixStack).paint(Rect.fullScreen().tint(PreciseColor.BLUE, PreciseColor.YELLOW, PreciseColor.BLUE, PreciseColor.YELLOW));
}

@Override
Expand Down

0 comments on commit bc5f74f

Please sign in to comment.