VulkanShader_1.21.10-0.0.4-alpha.jar
Download file
package net.vulkanmod.render.shader;
import com.mojang.blaze3d.pipeline.BlendFunction;
import com.mojang.blaze3d.pipeline.RenderPipeline;
import com.mojang.blaze3d.platform.DepthTestFunction;
import com.mojang.blaze3d.vertex.VertexFormat.class_5596;
import java.util.ArrayList;
import java.util.List;
import net.minecraft.class_10799;
import net.minecraft.class_290;
public class CustomRenderPipelines {
public static final List<RenderPipeline> pipelines = new ArrayList();
public static final RenderPipeline.Snippet GUI_TRIANGLES_SNIPPET;
public static final RenderPipeline GUI_TRIANGLES;
static RenderPipeline register(RenderPipeline pipeline) {
pipelines.add(pipeline);
return pipeline;
}
static {
GUI_TRIANGLES_SNIPPET = RenderPipeline.builder(new RenderPipeline.Snippet[]{class_10799.field_60125}).withVertexShader("core/gui").withFragmentShader("core/gui").withBlend(BlendFunction.TRANSLUCENT).withVertexFormat(class_290.field_1576, class_5596.field_27379).withDepthTestFunction(DepthTestFunction.NO_DEPTH_TEST).buildSnippet();
GUI_TRIANGLES = register(RenderPipeline.builder(new RenderPipeline.Snippet[]{GUI_TRIANGLES_SNIPPET}).withLocation("pipeline/gui").build());
}
}
Download file