-
Notifications
You must be signed in to change notification settings - Fork 26
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
7 changed files
with
25 additions
and
9 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
dependencies { | ||
modImplementation "net.fabricmc.fabric-api:fabric-api:${rootProject.fabric_version}" | ||
} |
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,3 +1,4 @@ | ||
dependencies { | ||
compile project(":core").sourceSets.main.output | ||
modImplementation "net.fabricmc.fabric-api:fabric-api:${rootProject.fabric_version}" | ||
} |
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
7 changes: 4 additions & 3 deletions
7
test_mods/depth/src/main/java/ladysnake/satindepthtest/SatinDepthTest.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 |
---|---|---|
@@ -1,21 +1,22 @@ | ||
package ladysnake.satindepthtest; | ||
|
||
import ladysnake.satin.api.event.PostWorldRenderCallback; | ||
import ladysnake.satin.api.event.ShaderEffectRenderCallback; | ||
import ladysnake.satintestcore.item.SatinTestItems; | ||
import net.fabricmc.api.ClientModInitializer; | ||
import net.fabricmc.fabric.api.event.client.ClientTickCallback; | ||
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents; | ||
|
||
public class SatinDepthTest implements ClientModInitializer { | ||
public static final String MOD_ID = "satindepthtest"; | ||
@Override | ||
public void onInitializeClient() { | ||
ClientTickCallback.EVENT.register(DepthFx.INSTANCE); | ||
ClientTickEvents.END_CLIENT_TICK.register(DepthFx.INSTANCE); | ||
ShaderEffectRenderCallback.EVENT.register(DepthFx.INSTANCE); | ||
PostWorldRenderCallback.EVENT.register(DepthFx.INSTANCE); | ||
SatinTestItems.DEBUG_ITEM.registerDebugCallback((world, player, hand) -> { | ||
if (world.isClient) { | ||
DepthFx.INSTANCE.testShader.release(); | ||
} | ||
}); | ||
} | ||
|
||
} |
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,3 +1,4 @@ | ||
dependencies { | ||
compile project(":core").sourceSets.main.output | ||
modImplementation "net.fabricmc.fabric-api:fabric-api:${rootProject.fabric_version}" | ||
} |