Skip to content

Commit abbcfec

Browse files
committed
refactor: add comments to Rasterizer3d unknowns
1 parent a52fc91 commit abbcfec

File tree

3 files changed

+28
-2
lines changed

3 files changed

+28
-2
lines changed

src/main/java/org/runejs/client/media/Rasterizer3D.java

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,42 @@
33
import org.runejs.client.Interface3;
44

55
public class Rasterizer3D extends Rasterizer {
6+
/**
7+
* Some kind of colour information, Dane calls this "reciprocal16"
8+
*/
69
public static int[] anIntArray2929 = new int[2048];
710
public static int bottomY;
811
public static int center_y;
912
public static int[] hsl2rgb = new int[65536];
1013
public static int alpha = 0;
14+
/**
15+
* x position/size info of some kind
16+
*
17+
* TODO rename
18+
*/
1119
public static int anInt2934;
20+
/**
21+
* negative center_y?
22+
*
23+
* TODO rename
24+
*/
1225
public static int anInt2935;
1326
public static boolean opaque = false;
1427
public static int center_x;
1528
public static int[] lineOffsets;
1629
public static Interface3 interface3;
1730
public static int[] shadowDecay = new int[512];
31+
/**
32+
* y position/size info of some kind
33+
*
34+
* TODO rename
35+
*/
1836
public static int anInt2941;
37+
/**
38+
* negative center_y?
39+
*
40+
* TODO rename
41+
*/
1942
public static int anInt2942;
2043
public static int[] sinetable = new int[2048];
2144
public static boolean notTextured = true;

src/main/java/org/runejs/client/media/renderable/Model.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ public class Model extends Renderable {
4242
public static int[] anIntArray3225;
4343
public static int[] anIntArray3226;
4444
public static int[] anIntArray3227;
45-
public static int[] anIntArray3228;
45+
/**
46+
* Some kind of colour information
47+
*/
48+
private static int[] anIntArray3228;
4649

4750
static {
4851
anIntArray3199 = new int[128];

src/main/java/org/runejs/client/media/renderable/actor/Npc.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
public class Npc extends Actor {
1111
public ActorDefinition actorDefinition;
12-
12+
1313
public static void parseNpcUpdateMasks(PacketBuffer buffer) {
1414
for(int i = 0; i < actorUpdatingIndex; i++) {
1515
int npcIndex = Player.actorUpdatingIndices[i];

0 commit comments

Comments
 (0)