File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -303,6 +303,14 @@ const updateSceneModel = () => {
303
303
packMesh ( buffer , "miku/apron/09_RIGHT_HAND_PLATE.obj" , 0x1c0 , meta ) ; // 017
304
304
packMesh ( buffer , "miku/apron/06_LEFT_HAND_PAN.obj" , 0x1d0 , meta ) ; // 018
305
305
306
+ // Update Vertex Colors
307
+ for ( let ofs = 0x1e70 ; ofs < 0x2524 ; ofs += 4 ) {
308
+ buffer [ ofs + 0 ] = 0x7f ;
309
+ buffer [ ofs + 1 ] = 0x7f ;
310
+ buffer [ ofs + 2 ] = 0x7f ;
311
+ buffer [ ofs + 3 ] = 0 ;
312
+ }
313
+
306
314
const content = Buffer . from ( buffer . subarray ( 0 , meta . contentEnd ) ) ;
307
315
const [ bitField , updatedScene ] = compressScene ( content ) ;
308
316
Original file line number Diff line number Diff line change @@ -607,6 +607,14 @@ const encodeApronMegaman = () => {
607
607
packMesh ( buffer , "miku/apron/09_RIGHT_HAND_PLATE.obj" , 0x1d0 , meta ) ; // 017
608
608
packMesh ( buffer , "miku/apron/06_LEFT_HAND_PAN.obj" , 0x1e0 , meta ) ; // 018
609
609
610
+ // Update Vertex Colors
611
+ for ( let ofs = 0x1e80 ; ofs < 0x2534 ; ofs += 4 ) {
612
+ buffer [ ofs + 0 ] = 0x7f ;
613
+ buffer [ ofs + 1 ] = 0x7f ;
614
+ buffer [ ofs + 2 ] = 0x7f ;
615
+ buffer [ ofs + 3 ] = 0 ;
616
+ }
617
+
610
618
// Update the content length to read
611
619
file . writeUInt32LE ( meta . contentEnd , 0x04 ) ;
612
620
// file.writeUInt32LE(0x1d, 0x08);
You can’t perform that action at this time.
0 commit comments