@@ -42,7 +42,8 @@ folderOptions.add(selectedScheme, 'Color Scheme', colorSchemes).onChange(v => {
4242} ) ;
4343
4444function clickSong ( ) {
45- playSong ( this )
45+ points . setUniform ( 'showMessage' , 0 ) ;
46+ playSong ( this ) ;
4647}
4748
4849function playSong ( song ) {
@@ -318,11 +319,13 @@ points.setTexture2d('feedbackTexture', true);
318319
319320audio = points . setAudio ( 'audio' , './../80s-pulse-synthwave-dude-212407.mp3' , options . volume , loop , false ) ;
320321
322+ points . setUniform ( 'showMessage' , 1 ) ;
321323points . setUniform ( 'rand' , 0 ) ;
322324points . setUniform ( 'progress' , 0 ) ;
323325points . setUniform ( 'artworkLoaded' , 0 ) ;
324326// points.setUniform('somecolor', colors.color2, 'vec3f');
325327points . setStorageMap ( 'chars' , [ 15 , 14 , 8 , 13 , 19 , 18 ] , 'array<f32>' ) // TODO: setStorageMap doesn't work with u32 wrong sized
328+ points . setStorageMap ( 'message' , strToCodes ( 'Select a song to Play' ) , 'array<f32>' ) // TODO: setStorageMap doesn't work with u32 wrong sized
326329points . setStorageMap ( 'artworkColors' , Array ( 16 ) . fill ( 1 ) , 'array<vec4f>' ) ;
327330points . setStorage ( 'variables' , 'Variables' ) ;
328331await points . setTextureImage ( 'font' , './src/img/inconsolata_regular_8x22.png' ) ;
0 commit comments