14 public override void Init() {
38 depthAmplitude = Mathf.Abs(minDepth);
40 Debug.Log(
"Amplitude:");
41 Debug.Log(depthAmplitude.ToString());
50 int dim0 =
density.GetLength(0);
51 int dim1 =
density.GetLength(1);
52 int dim2 =
density.GetLength(2);
54 Vector3 indices = Vector3.zero;
56 for(
int x=0; x<dim0; x++) {
57 for(
int y=0; y<dim1; y++) {
58 for(
int z=0; z<dim2; z++) {
67 c.a = 2.5f * Mathf.Abs((depth / depthAmplitude));
76 ParticleSystem.Particle particle =
new ParticleSystem.Particle();
77 Vector3 p =
new Vector3(0f,0f,0f);
79 particle.position = p;
80 particle.startColor = c;
84 particle.startSize =
delta.x * 2.8f;
List< ParticleSystem.Particle > dynPoints
void SetParticleSystem()
Sets the particle system.
override void Init()
Initializes this instance.
override void CreatePoints()
Creates the points for this particle system.