Version bump, fix dh impersonation uniform, add 4 more colourtexs to iris
This commit is contained in:
@@ -15,6 +15,6 @@ loom_version=1.11-SNAPSHOT
|
|||||||
fabric_version=0.129.0+1.21.8
|
fabric_version=0.129.0+1.21.8
|
||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version = 0.2.4-alpha
|
mod_version = 0.2.5-alpha
|
||||||
maven_group = me.cortex
|
maven_group = me.cortex
|
||||||
archives_base_name = voxy
|
archives_base_name = voxy
|
||||||
@@ -62,7 +62,7 @@ public class VoxyUniforms {
|
|||||||
.uniform1f(PER_FRAME, "dhNearPlane", ()->16)//Presently hardcoded in voxy
|
.uniform1f(PER_FRAME, "dhNearPlane", ()->16)//Presently hardcoded in voxy
|
||||||
.uniform1f(PER_FRAME, "dhFarPlane", ()->16*3000)//Presently hardcoded in voxy
|
.uniform1f(PER_FRAME, "dhFarPlane", ()->16*3000)//Presently hardcoded in voxy
|
||||||
|
|
||||||
.uniform1i(PER_FRAME, "dhRenderDistance", ()-> VoxyConfig.CONFIG.sectionRenderDistance*32)//In chunks
|
.uniform1i(PER_FRAME, "dhRenderDistance", ()-> VoxyConfig.CONFIG.sectionRenderDistance*32*16)//In blocks
|
||||||
.uniformMatrix(PER_FRAME, "dhProjection", VoxyUniforms::getProjection)
|
.uniformMatrix(PER_FRAME, "dhProjection", VoxyUniforms::getProjection)
|
||||||
.uniformMatrix(PER_FRAME, "dhProjectionInverse", new Inverted(VoxyUniforms::getProjection))
|
.uniformMatrix(PER_FRAME, "dhProjectionInverse", new Inverted(VoxyUniforms::getProjection))
|
||||||
.uniformMatrix(PER_FRAME, "dhPreviousProjection", new PreviousMat(VoxyUniforms::getProjection));
|
.uniformMatrix(PER_FRAME, "dhPreviousProjection", new PreviousMat(VoxyUniforms::getProjection));
|
||||||
|
|||||||
@@ -0,0 +1,22 @@
|
|||||||
|
package me.cortex.voxy.client.mixin.iris;
|
||||||
|
|
||||||
|
import com.google.common.collect.ImmutableSet;
|
||||||
|
import com.llamalad7.mixinextras.injector.wrapoperation.WrapOperation;
|
||||||
|
import net.irisshaders.iris.shaderpack.properties.PackRenderTargetDirectives;
|
||||||
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
|
import org.spongepowered.asm.mixin.injection.At;
|
||||||
|
import org.spongepowered.asm.mixin.injection.Inject;
|
||||||
|
import org.spongepowered.asm.mixin.injection.Redirect;
|
||||||
|
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
|
@Mixin(value = PackRenderTargetDirectives.class, remap = false)
|
||||||
|
public class MixinPackRenderTargetDirectives {
|
||||||
|
@Redirect(method = "<clinit>", at = @At(value = "INVOKE", target = "Lcom/google/common/collect/ImmutableSet$Builder;build()Lcom/google/common/collect/ImmutableSet;"))
|
||||||
|
private static ImmutableSet<Integer> voxy$injectExtraColourTex(ImmutableSet.Builder<Integer> builder) {
|
||||||
|
for (int i = 16; i < 20; i++) {
|
||||||
|
builder.add(i);
|
||||||
|
}
|
||||||
|
return builder.build();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -3,6 +3,7 @@
|
|||||||
"package": "me.cortex.voxy.client.mixin",
|
"package": "me.cortex.voxy.client.mixin",
|
||||||
"compatibilityLevel": "JAVA_17",
|
"compatibilityLevel": "JAVA_17",
|
||||||
"client": [
|
"client": [
|
||||||
|
"iris.MixinPackRenderTargetDirectives",
|
||||||
"iris.CustomUniformsAccessor",
|
"iris.CustomUniformsAccessor",
|
||||||
"iris.IrisRenderingPipelineAccessor",
|
"iris.IrisRenderingPipelineAccessor",
|
||||||
"iris.MixinIrisRenderingPipeline",
|
"iris.MixinIrisRenderingPipeline",
|
||||||
|
|||||||
Reference in New Issue
Block a user