Class MipmapGenerator
java.lang.Object
net.minecraft.client.renderer.texture.MipmapGenerator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final floatprivate static final Stringprivate static final float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static floatalphaTestCoverage(NativeImage image, float alphaRef, float alphaScale) private static intdarkenedAlphaBlend(int col0, int col1, int col2, int col3) static NativeImage[]generateMipLevels(Identifier texture, NativeImage[] mipLevels, int mipLevel, MipmapStrategy strategy, float alphaCutoffBias) private static booleanhasTransparentPixel(NativeImage image) private static voidscaleAlphaToCoverage(NativeImage image, float desiredCoverage, float alphaRef, float alphaCutoffBias)
-
Field Details
-
ITEM_PREFIX
- See Also:
-
ALPHA_CUTOFF
private static final float ALPHA_CUTOFF- See Also:
-
STRICT_ALPHA_CUTOFF
private static final float STRICT_ALPHA_CUTOFF- See Also:
-
-
Constructor Details
-
MipmapGenerator
private MipmapGenerator()
-
-
Method Details
-
alphaTestCoverage
-
scaleAlphaToCoverage
private static void scaleAlphaToCoverage(NativeImage image, float desiredCoverage, float alphaRef, float alphaCutoffBias) -
generateMipLevels
public static NativeImage[] generateMipLevels(Identifier texture, NativeImage[] mipLevels, int mipLevel, MipmapStrategy strategy, float alphaCutoffBias) -
hasTransparentPixel
-
darkenedAlphaBlend
private static int darkenedAlphaBlend(int col0, int col1, int col2, int col3)
-