Skip to content

Commit

Permalink
Fix entity outline colors
Browse files Browse the repository at this point in the history
  • Loading branch information
IMS212 committed Jul 15, 2024
1 parent 26d4fd2 commit 3f50d7f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.mojang.blaze3d.vertex.VertexConsumer;
import net.caffeinemc.mods.sodium.api.util.ColorABGR;
import net.caffeinemc.mods.sodium.api.util.ColorARGB;
import net.caffeinemc.mods.sodium.api.vertex.attributes.CommonVertexAttribute;
import net.caffeinemc.mods.sodium.api.vertex.attributes.common.ColorAttribute;
import net.caffeinemc.mods.sodium.api.vertex.format.VertexFormatDescription;
Expand Down Expand Up @@ -61,7 +62,7 @@ private static void transform(long ptr, int count, VertexFormatDescription forma
long offsetColor = format.getElementOffset(CommonVertexAttribute.COLOR);

for (int vertexIndex = 0; vertexIndex < count; vertexIndex++) {
ColorAttribute.set(ptr + offsetColor, color);
ColorAttribute.set(ptr + offsetColor, ColorARGB.toABGR(color));
ptr += stride;
}
}
Expand Down

0 comments on commit 3f50d7f

Please sign in to comment.