Skip to content

Commit

Permalink
feat(render): tweak fog easing
Browse files Browse the repository at this point in the history
  • Loading branch information
CallMeEchoCodes committed Dec 10, 2024
1 parent e0528ae commit 44f3797
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ loom {

repositories {
mavenCentral()
maven("https://maven.spiritstudios.dev/snapshots/")
maven("https://maven.spiritstudios.dev/releases/")
maven("https://maven.terraformersmc.com/releases/")
maven("https://maven.gegy.dev/")

Expand Down
3 changes: 1 addition & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ yarn = "1.21+build.9"
fabric_loader = "0.16.5"
fabric_api = "0.109.0+1.21.1"

specter = "1.1.0-SNAPSHOT8"
specter = "1.1.0"

lambdynamiclights = "3.1.2+1.21.1"

Expand Down Expand Up @@ -38,7 +38,6 @@ lambdynamiclights = { group = "dev.lambdaurora.lambdynamiclights", name = "lambd

[bundles]
specter = [
"specter_api",
"specter_block",
"specter_config",
"specter_core",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ private static void applyCloserFog(
} else if (transitionProgress > 0.0F) transitionProgress -= tickDelta;

if (transitionProgress > 0.0F) {
fogData.fogStart = (float) Easing.SINE.inOut(
fogData.fogStart = (float) Easing.QUINT.out(
transitionProgress,
prevStart, viewDistance * 0.05F,
DURATION
);

fogData.fogEnd = (float) Easing.SINE.inOut(
fogData.fogEnd = (float) Easing.QUINT.out(
transitionProgress,
prevEnd, Math.min(viewDistance, 148) * 0.5F,
DURATION
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@
"minecraft": "~${minecraft_version}-",
"fabric-api": "*",
"java": ">=21",
"specter": "*"
"specter-core": "*"
}
}

0 comments on commit 44f3797

Please sign in to comment.