| 101 | } |
| 102 | |
| 103 | private void getLightMapColumn(float[][] origMap, float x, int offset, int width, float[][] colRgb) |
| 104 | { |
| 105 | int i = (int)Math.floor((double)x); |
| 106 | int j = (int)Math.ceil((double)x); |
| 107 | |
| 108 | if (i == j) |
| 109 | { |
| 110 | for (int i1 = 0; i1 < 16; ++i1) |
| 111 | { |
| 112 | float[] afloat3 = origMap[offset + i1 * width + i]; |
| 113 | float[] afloat4 = colRgb[i1]; |
| 114 | |
| 115 | for (int j1 = 0; j1 < 3; ++j1) |
| 116 | { |
| 117 | afloat4[j1] = afloat3[j1]; |
| 118 | } |
| 119 | } |
| 120 | } |
| 121 | else |
| 122 | { |
| 123 | float f = 1.0F - (x - (float)i); |
| 124 | float f1 = 1.0F - ((float)j - x); |
| 125 | |
| 126 | for (int k = 0; k < 16; ++k) |
| 127 | { |
| 128 | float[] afloat = origMap[offset + k * width + i]; |
| 129 | float[] afloat1 = origMap[offset + k * width + j]; |
| 130 | float[] afloat2 = colRgb[k]; |
| 131 | |
| 132 | for (int l = 0; l < 3; ++l) |
| 133 | { |
| 134 | afloat2[l] = afloat[l] * f + afloat1[l] * f1; |
| 135 | } |
| 136 | } |
| 137 | } |
| 138 | } |
| 139 | |
| 140 | private static void dbg(String str) |
| 141 | { |