Class PatternRenderer
java.lang.Object
at.petrak.hexcasting.client.render.PatternRenderer
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidrenderPattern(at.petrak.hexcasting.api.casting.math.HexPattern pattern, com.mojang.blaze3d.vertex.PoseStack ps, PatternRenderer.WorldlyBits worldlyBits, PatternSettings patSets, PatternColors patColors, double seed, int resPerUnit) static voidrenderPattern(at.petrak.hexcasting.api.casting.math.HexPattern pattern, com.mojang.blaze3d.vertex.PoseStack ps, PatternSettings patSets, PatternColors patColors, double seed, int resPerUnit) static voidrenderPattern(HexPatternLike patternlike, com.mojang.blaze3d.vertex.PoseStack ps, PatternRenderer.WorldlyBits worldlyBits, PatternSettings patSets, PatternColors patColors, double seed, int resPerUnit) Renders a pattern (or rather a pattern-like) according to the given settings.static boolean
-
Constructor Details
-
PatternRenderer
public PatternRenderer()
-
-
Method Details
-
renderPattern
public static void renderPattern(at.petrak.hexcasting.api.casting.math.HexPattern pattern, com.mojang.blaze3d.vertex.PoseStack ps, PatternSettings patSets, PatternColors patColors, double seed, int resPerUnit) -
renderPattern
public static void renderPattern(at.petrak.hexcasting.api.casting.math.HexPattern pattern, com.mojang.blaze3d.vertex.PoseStack ps, @Nullable PatternRenderer.WorldlyBits worldlyBits, PatternSettings patSets, PatternColors patColors, double seed, int resPerUnit) -
renderPattern
public static void renderPattern(HexPatternLike patternlike, com.mojang.blaze3d.vertex.PoseStack ps, @Nullable PatternRenderer.WorldlyBits worldlyBits, PatternSettings patSets, PatternColors patColors, double seed, int resPerUnit) Renders a pattern (or rather a pattern-like) according to the given settings.- Parameters:
patternlike- the pattern (or more generally the lines) to render.ps- pose/matrix stack to render based on. (0,0) is treated as the top left corner. The size of the render is determined by patSets.worldlyBits- used for rendering with light/normals/render-layers if possible. This is optional and probably shouldn't be used for UI rendering.patSets- settings that control how the pattern is drawn.patColors- colors to use for drawing the pattern and dots.seed- seed to use for zappy wobbles.resPerUnit- the texture resolution per pose unit space to be used *if* the texture renderer is used.
-
shouldDoStrokeGradient
public static boolean shouldDoStrokeGradient()
-