Skip to content

Commit

Permalink
Fix smeltery fluids not rendering on fabulous graphics (#4745)
Browse files Browse the repository at this point in the history
  • Loading branch information
KnightMiner committed Mar 2, 2022
1 parent f7add2f commit cd97b21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ forge_range=[39.0.57,)
parchment_version=2021.12.19

# Build Dependencies
mantle_version=1.8.35
mantle_range=[1.7.26,)
mantle_version=1.8.36
mantle_range=[1.8.36,)

# Optional compat
jei_version=9.1.+
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,12 @@ public TinkerRenderTypes(String name, VertexFormat format, Mode mode, int buffer

/** Render type for fluids, like {@link slimeknights.mantle.client.render.MantleRenderTypes#FLUID}, but disables cull so both sides show */
public static final RenderType SMELTERY_FLUID = RenderType.create(
TConstruct.resourceString("smeltery_fluid"), DefaultVertexFormat.POSITION_COLOR_TEX_LIGHTMAP, VertexFormat.Mode.QUADS, 256, true, true,
TConstruct.resourceString("smeltery_fluid"), DefaultVertexFormat.POSITION_COLOR_TEX_LIGHTMAP, VertexFormat.Mode.QUADS, 256, false, true,
CompositeState.builder()
.setTextureState(BLOCK_SHEET)
.setShaderState(RENDERTYPE_TRANSLUCENT_SHADER)
.setLightmapState(LIGHTMAP)
.setShaderState(POSITION_COLOR_TEX_LIGHTMAP_SHADER)
.setTextureState(BLOCK_SHEET_MIPPED)
.setTransparencyState(TRANSLUCENT_TRANSPARENCY)
.setOutputState(TRANSLUCENT_TARGET)
.setCullState(NO_CULL)
.createCompositeState(false));
}

0 comments on commit cd97b21

Please sign in to comment.