Skip to content

Commit

Permalink
Update Yarn mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander01998 committed Feb 17, 2025
1 parent af3f4a3 commit 4e0f626
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ org.gradle.parallel=true
# check these at https://fabricmc.net/develop/ and
# https://modrinth.com/mod/fabric-api/versions
minecraft_version=25w07a
yarn_mappings=25w07a+build.5
yarn_mappings=25w07a+build.8
loader_version=0.16.10

# Fabric API
Expand Down
38 changes: 19 additions & 19 deletions src/main/java/net/wurstclient/WurstShaderLayers.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,28 +24,28 @@ public enum WurstShaderLayers
* version with support for transparency.
*/
public static final ShaderProgramLayer ONE_PIXEL_LINES =
ShaderProgramLayers.addProgram(ShaderProgramLayer
.create(ShaderProgramLayers.MATRICIES_COLOR)
.setName("pipeline/wurst_1px_lines")
.setVertex("core/position_color").setShard("core/position_color")
.addBlend(BlendPrograms.TRANSLUCENT).addCulling(false)
.addFormat(VertexFormats.POSITION_COLOR,
VertexFormat.DrawMode.DEBUG_LINES)
.create());
ShaderProgramLayers.addProgram(
ShaderProgramLayer.create(ShaderProgramLayers.MATRICIES_COLOR)
.setName("pipeline/wurst_1px_lines")
.setVertex("core/position_color").setPass("core/position_color")
.addBlend(BlendPrograms.TRANSLUCENT).addCulling(false)
.addFormat(VertexFormats.POSITION_COLOR,
VertexFormat.DrawMode.DEBUG_LINES)
.create());

/**
* Similar to the DEBUG_LINE_STIP ShaderProgramLayer, but with support for
* transparency.
*/
public static final ShaderProgramLayer ONE_PIXEL_LINE_STRIP =
ShaderProgramLayers.addProgram(ShaderProgramLayer
.create(ShaderProgramLayers.MATRICIES_COLOR)
.setName("pipeline/wurst_1px_line_strip")
.setVertex("core/position_color").setShard("core/position_color")
.addBlend(BlendPrograms.TRANSLUCENT).addCulling(false)
.addFormat(VertexFormats.POSITION_COLOR,
VertexFormat.DrawMode.DEBUG_LINE_STRIP)
.create());
ShaderProgramLayers.addProgram(
ShaderProgramLayer.create(ShaderProgramLayers.MATRICIES_COLOR)
.setName("pipeline/wurst_1px_line_strip")
.setVertex("core/position_color").setPass("core/position_color")
.addBlend(BlendPrograms.TRANSLUCENT).addCulling(false)
.addFormat(VertexFormats.POSITION_COLOR,
VertexFormat.DrawMode.DEBUG_LINE_STRIP)
.create());

/**
* Similar to the LINES ShaderProgramLayer, but with no depth test.
Expand All @@ -54,7 +54,7 @@ public enum WurstShaderLayers
ShaderProgramLayers.addProgram(
ShaderProgramLayer.create(ShaderProgramLayers.RENDERTYPE_LINES)
.setName("pipeline/wurst_esp_lines")
.AddDepthProgram(DepthTestState.NO_DEPTH_TEST).create());
.addDepthProgram(DepthTestState.NO_DEPTH_TEST).create());

/**
* Similar to the LINE_STRIP ShaderProgramLayer, but with no depth test.
Expand All @@ -64,7 +64,7 @@ public enum WurstShaderLayers
ShaderProgramLayer.create(ShaderProgramLayers.RENDERTYPE_LINES)
.setName("pipeline/wurst_esp_line_strip")
.addFormat(VertexFormats.LINES, DrawMode.LINE_STRIP)
.AddDepthProgram(DepthTestState.NO_DEPTH_TEST).create());
.addDepthProgram(DepthTestState.NO_DEPTH_TEST).create());

/**
* Similar to the DEBUG_QUADS ShaderProgramLayer, but with culling enabled
Expand All @@ -74,5 +74,5 @@ public enum WurstShaderLayers
ShaderProgramLayers.addProgram(
ShaderProgramLayer.create(ShaderProgramLayers.POSITION_COLOR)
.setName("pipeline/wurst_esp_quads")
.AddDepthProgram(DepthTestState.NO_DEPTH_TEST).create());
.addDepthProgram(DepthTestState.NO_DEPTH_TEST).create());
}

0 comments on commit 4e0f626

Please sign in to comment.