From 93fff8b1a9154bf514b2b0d3fcf2bd4c44a1a941 Mon Sep 17 00:00:00 2001 From: makamys Date: Mon, 20 Jun 2022 00:23:26 +0200 Subject: Rename squadron to megaquad Less funny but more clear in my opinion --- src/main/java/makamys/neodymium/renderer/MeshQuad.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/main/java') diff --git a/src/main/java/makamys/neodymium/renderer/MeshQuad.java b/src/main/java/makamys/neodymium/renderer/MeshQuad.java index bddabe7..9316023 100644 --- a/src/main/java/makamys/neodymium/renderer/MeshQuad.java +++ b/src/main/java/makamys/neodymium/renderer/MeshQuad.java @@ -22,13 +22,13 @@ import net.minecraft.util.EnumFacing; * | | * 3--2 * - * We can glue quads together, forming a "quad squadron", or "squadron" for short. - * In the fragment shader we need to know which quad of the squadron we are operating on. - * For this reason, we store the "squadron X" and "squadron Y" coordinates in the vertices. + * We can glue quads together, forming a megaquad. + * In the fragment shader we need to know which quad of the megaquad we are operating on. + * For this reason, we store the "megaquad X" and "megaquad Y" coordinates in the vertices. * Their values at vertex 0: (0, 0) - * Their values at vertex 1: (sqadron width, 0) - * Their values at vertex 2: (squadron width, squadron height) - * Their values at vertex 3: (0, squadron height) + * Their values at vertex 1: (megaquad width, 0) + * Their values at vertex 2: (megaquad width, megaquad height) + * Their values at vertex 3: (0, megaquad height) */ public class MeshQuad { @@ -56,8 +56,8 @@ public class MeshQuad { // positive U direction is parallel to edge 0-1 public boolean uDirectionIs01; - // 0: quads glued together on edge 1-2 or 3-0 ("squadron row length") - // 1: quads glued together on edge 0-1 or 2-3 ("squadron column length") + // 0: quads glued together on edge 1-2 or 3-0 ("megaquad row length") + // 1: quads glued together on edge 0-1 or 2-3 ("megaquad column length") private int[] quadCountByDirection = {1, 1}; public static int[] totalMergeCountByPlane = new int[3]; @@ -167,7 +167,7 @@ public class MeshQuad { + 4 // B (int) + 4 // C (int)) + 4 - ; // squadron XY (byte) + ; // megaquad XY (byte) } private boolean isTranslatedCopyOf(MeshQuad o, boolean checkValid) { -- cgit