forked from IrisShaders/Iris
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
~40% done. There are some problems with porting the GL code, serious problems with the RenderType code, and problems with the matrix code. GUI code inspired by Angelica
- Loading branch information
Showing
252 changed files
with
3,836 additions
and
3,449 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,19 +1,17 @@ | ||
# Done to increase the memory available to gradle. | ||
org.gradle.jvmargs=-Xmx6G | ||
org.gradle.jvmargs=-Xmx3G | ||
|
||
# Fabric Properties | ||
minecraft_version=1.16.5 | ||
yarn_mappings=1.16.5+build.10 | ||
loader_version=0.13.2 | ||
minecraft_version=1.12.2 | ||
minecraft_version_range=[1.12,1.13) | ||
forge_version=14.23.5.2860 | ||
forge_version_range=[23,) | ||
loader_version_range=[23,) | ||
mappings_channel=stable | ||
mappings_version=39-1.12 | ||
|
||
# Mod Properties | ||
mod_version = 1.4.8 | ||
maven_group = net.coderbot | ||
archives_base_name = oculus | ||
|
||
forge_version=36.2.29 | ||
|
||
loom.platform=forge | ||
|
||
# Dependencies | ||
fabric_version=0.42.0+1.16 | ||
mod_id=oculus | ||
mod_name=Oculus | ||
mod_main_class=Iris | ||
mod_version = 1.4.7 | ||
mod_base_package = net.coderbot.iris |
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,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Binary file not shown.
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,13 +1,25 @@ | ||
pluginManagement { | ||
repositories { | ||
gradlePluginPortal() | ||
maven { url = 'https://gitlab.com/api/v4/projects/26758973/packages/maven' } | ||
maven { | ||
name = 'Fabric' | ||
url = 'https://maven.fabricmc.net/' | ||
// RetroFuturaGradle | ||
name = "GTNH Maven" | ||
url = uri("http://jenkins.usrv.eu:8081/nexus/content/groups/public/") | ||
allowInsecureProtocol = true | ||
mavenContent { | ||
includeGroup("com.gtnewhorizons") | ||
includeGroup("com.gtnewhorizons.retrofuturagradle") | ||
} | ||
} | ||
maven { url "https://maven.architectury.dev/" } | ||
maven { url "https://files.minecraftforge.net/maven/" } | ||
gradlePluginPortal() | ||
} | ||
} | ||
|
||
include("glsl-relocated") | ||
plugins { | ||
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.7.0' // Provides java toolchains | ||
} | ||
|
||
|
||
rootProject.name = "${mod_name}" | ||
|
||
include("glsl-relocated") |
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,79 @@ | ||
package it.unimi.dsi.fastutil; | ||
|
||
public final class SafeMath { | ||
private SafeMath() { | ||
} | ||
|
||
public static char safeIntToChar(int value) { | ||
if (value >= 0 && 65535 >= value) { | ||
return (char)value; | ||
} else { | ||
throw new IllegalArgumentException(value + " can't be represented as char"); | ||
} | ||
} | ||
|
||
public static byte safeIntToByte(int value) { | ||
if (value >= -128 && 127 >= value) { | ||
return (byte)value; | ||
} else { | ||
throw new IllegalArgumentException(value + " can't be represented as byte (out of range)"); | ||
} | ||
} | ||
|
||
public static short safeIntToShort(int value) { | ||
if (value >= -32768 && 32767 >= value) { | ||
return (short)value; | ||
} else { | ||
throw new IllegalArgumentException(value + " can't be represented as short (out of range)"); | ||
} | ||
} | ||
|
||
public static char safeLongToChar(long value) { | ||
if (value >= 0L && 65535L >= value) { | ||
return (char)((int)value); | ||
} else { | ||
throw new IllegalArgumentException(value + " can't be represented as int (out of range)"); | ||
} | ||
} | ||
|
||
public static byte safeLongToByte(long value) { | ||
if (value >= -128L && 127L >= value) { | ||
return (byte)((int)value); | ||
} else { | ||
throw new IllegalArgumentException(value + " can't be represented as int (out of range)"); | ||
} | ||
} | ||
|
||
public static short safeLongToShort(long value) { | ||
if (value >= -32768L && 32767L >= value) { | ||
return (short)((int)value); | ||
} else { | ||
throw new IllegalArgumentException(value + " can't be represented as int (out of range)"); | ||
} | ||
} | ||
|
||
public static int safeLongToInt(long value) { | ||
if (value >= -2147483648L && 2147483647L >= value) { | ||
return (int)value; | ||
} else { | ||
throw new IllegalArgumentException(value + " can't be represented as int (out of range)"); | ||
} | ||
} | ||
|
||
public static float safeDoubleToFloat(double value) { | ||
if (Double.isNaN(value)) { | ||
return Float.NaN; | ||
} else if (Double.isInfinite(value)) { | ||
return value < 0.0 ? Float.NEGATIVE_INFINITY : Float.POSITIVE_INFINITY; | ||
} else if (!(value < -Float.MAX_VALUE) && !(Float.MAX_VALUE < value)) { | ||
float floatValue = (float)value; | ||
if ((double)floatValue != value) { | ||
throw new IllegalArgumentException(value + " can't be represented as float (imprecise)"); | ||
} else { | ||
return floatValue; | ||
} | ||
} else { | ||
throw new IllegalArgumentException(value + " can't be represented as float (out of range)"); | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
src/main/java/it/unimi/dsi/fastutil/booleans/BooleanConsumer.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,22 @@ | ||
package it.unimi.dsi.fastutil.booleans; | ||
|
||
import java.util.Objects; | ||
import java.util.function.Consumer; | ||
|
||
@FunctionalInterface | ||
public interface BooleanConsumer extends Consumer<Boolean> { | ||
void accept(boolean var1); | ||
|
||
@Deprecated | ||
default void accept(Boolean t) { | ||
this.accept(t.booleanValue()); | ||
} | ||
|
||
default BooleanConsumer andThen(BooleanConsumer after) { | ||
Objects.requireNonNull(after); | ||
return t -> { | ||
this.accept(t); | ||
after.accept(t); | ||
}; | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
src/main/java/it/unimi/dsi/fastutil/floats/FloatConsumer.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,33 @@ | ||
package it.unimi.dsi.fastutil.floats; | ||
|
||
import it.unimi.dsi.fastutil.SafeMath; | ||
import java.util.Objects; | ||
import java.util.function.Consumer; | ||
import java.util.function.DoubleConsumer; | ||
|
||
@FunctionalInterface | ||
public interface FloatConsumer extends Consumer<Float>, DoubleConsumer { | ||
void accept(float var1); | ||
|
||
@Deprecated | ||
default void accept(double t) { | ||
this.accept(SafeMath.safeDoubleToFloat(t)); | ||
} | ||
|
||
@Deprecated | ||
default void accept(Float t) { | ||
this.accept(t.floatValue()); | ||
} | ||
|
||
default FloatConsumer andThen(FloatConsumer after) { | ||
Objects.requireNonNull(after); | ||
return t -> { | ||
this.accept(t); | ||
after.accept(t); | ||
}; | ||
} | ||
|
||
default FloatConsumer andThen(DoubleConsumer after) { | ||
return this.andThen(after instanceof FloatConsumer ? (FloatConsumer)after : after::accept); | ||
} | ||
} |
Oops, something went wrong.
fd885da
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉