Fixed some stuff

This commit is contained in:
2025-11-19 09:49:31 +01:00
parent 43e0f47c90
commit bb904b4f02
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ dependencies {
minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}" minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}"
// Local Ascend mod (works because of mavenLocal()) // Local Ascend mod (works because of mavenLocal())
implementation fg.deobf("net.fretux.ascend:Ascend:1.0.0") implementation fg.deobf("net.fretux.ascend:Ascend:1.1.0")
// Iron's Spellbooks // Iron's Spellbooks
compileOnly fg.deobf("io.redspace.ironsspellbooks:irons_spellbooks:${irons_spells_version}:api") compileOnly fg.deobf("io.redspace.ironsspellbooks:irons_spellbooks:${irons_spells_version}:api")
@@ -6,11 +6,12 @@ uniform mat4 ProjMat;
uniform vec2 OutSize; uniform vec2 OutSize;
uniform float ShakeStrength; uniform float ShakeStrength;
uniform float Time; uniform float Time;
out vec2 oneTexel;
out vec2 texCoord; out vec2 texCoord;
void main() { void main() {
oneTexel = 1.0 / OutSize;
// screen-shake offset in *pixels* // screen-shake offset in *pixels*
float px = sin(Time * 25.0 + Position.x * 5.0) * ShakeStrength * 20.0; float px = sin(Time * 25.0 + Position.x * 5.0) * ShakeStrength * 20.0;
float py = cos(Time * 20.0 + Position.y * 7.0) * ShakeStrength * 20.0; float py = cos(Time * 20.0 + Position.y * 7.0) * ShakeStrength * 20.0;