File tree Expand file tree Collapse file tree 3 files changed +16
-11
lines changed Expand file tree Collapse file tree 3 files changed +16
-11
lines changed Original file line number Diff line number Diff line change 1+ ## [ 1.1.0]
2+
3+ - Changes
4+ - Randomization of triangle indices to generate a more randomized visulizer.
5+
16## [ 1.0.0]
27
38- Initial release.
Original file line number Diff line number Diff line change @@ -20,10 +20,10 @@ All rights reserved.
2020using UnityEngine ;
2121using UnityEngine . VFX ;
2222using Unity . Mathematics ;
23- using Unity . Jobs ;
2423using Unity . Collections ;
25- using Unity . Burst ;
2624using Unity . Collections . LowLevel . Unsafe ;
25+ using Unity . Burst ;
26+ using Unity . Jobs ;
2727using Voxell . Inspector ;
2828using Voxell . Mathx ;
2929
@@ -42,7 +42,7 @@ public partial class AudioCore
4242 [ Tooltip ( "Damping value to multiply the velocity of each triangles each frame." ) ]
4343 [ Range ( 0 , 1 ) ]
4444 public float velocityMultiplier = 0.95f ;
45- public int batchSize = 100 ;
45+ public int batchSize = 128 ;
4646 [ Tooltip ( "Randomization of triangle index, set to 0 if you don't want to randomize it." ) ]
4747 public uint seed ;
4848 [ InspectOnly ] public int totalTriangles ;
@@ -144,13 +144,13 @@ private void UpdateAudioVisualizer()
144144
145145 void OnDisable ( )
146146 {
147- normals . Dispose ( ) ;
148- triangles . Dispose ( ) ;
149- samples . Dispose ( ) ;
150- bandDistribution . Dispose ( ) ;
151- vertices . Dispose ( ) ;
152- prevBands . Dispose ( ) ;
153- bandVelocities . Dispose ( ) ;
147+ NativeUtil . DisposeArray ( ref normals ) ;
148+ NativeUtil . DisposeArray ( ref triangles ) ;
149+ NativeUtil . DisposeArray ( ref samples ) ;
150+ NativeUtil . DisposeArray ( ref bandDistribution ) ;
151+ NativeUtil . DisposeArray ( ref vertices ) ;
152+ NativeUtil . DisposeArray ( ref prevBands ) ;
153+ NativeUtil . DisposeArray ( ref bandVelocities ) ;
154154 }
155155 }
156156}
Original file line number Diff line number Diff line change 1111 "license" : " GPL v3.0" ,
1212 "unity" : " 2021.1" ,
1313 "unityRelease" : " 0f1" ,
14- "version" : " 1.0 .0" ,
14+ "version" : " 1.1 .0" ,
1515 "dependencies" : {
1616 "voxell.util" : " 1.1.0" ,
1717 "com.unity.visualeffectgraph" : " 10.3.2"
You can’t perform that action at this time.
0 commit comments