add more colors in 3D canvas

This commit is contained in:
HF 2020-01-31 01:07:31 +01:00
parent 8b6d0ba698
commit 4c7dfb91c5
2 changed files with 34 additions and 3 deletions

View File

@ -95,6 +95,7 @@
"ident":"v",
"title": "3D Canvas",
"colors": [
[ 255, 255, 255 ],
[ 255, 255, 255 ],
[ 255, 255, 255 ],
[ 228, 228, 228 ],
@ -125,11 +126,41 @@
[ 0, 0, 234 ],
[ 25, 25, 115 ],
[ 207, 110, 228 ],
[ 130, 0, 128 ]
[ 130, 0, 128 ],
[ 49, 46, 47 ],
[ 99, 92, 90 ],
[ 129, 119, 107 ],
[ 198, 181, 165 ],
[ 255, 237, 212 ],
[ 150, 86, 122 ],
[ 202, 112, 145 ],
[ 96, 67, 79 ],
[ 136, 79, 94 ],
[ 175, 101, 103 ],
[ 195, 124, 107 ],
[ 221, 153, 126 ],
[ 233, 181, 140 ],
[ 198, 139, 91 ],
[ 140, 89, 74 ],
[ 94, 68, 63 ],
[ 225, 173, 86 ],
[ 248, 207, 142 ],
[ 239, 220, 118 ],
[ 206, 190, 85 ],
[ 157, 159, 55 ],
[ 114, 121, 43 ],
[ 81, 94, 46 ],
[ 69, 100, 79 ],
[ 80, 134, 87 ],
[ 187, 209, 138 ],
[ 91, 84, 108 ],
[ 106, 113, 137 ],
[ 122, 148, 156 ],
[ 174, 215, 185 ]
],
"size": 1024,
"v": true,
"cli": 1,
"cli": 2,
"bcd": 2000,
"pcd" : 2000,
"cds": 60000,

View File

@ -272,7 +272,7 @@ class Chunk {
const height = this.heightMap[startOffset];
let u = startOffset;
for (let y = 0; y <= height; ++y) {
voxel = this.buffer[u];
voxel = this.buffer[u] & 0x3F;
if (voxel !== 0) {
voxel *= 3;
for (let i = 0; i < 6; ++i) {