Exemple #1
0
        private void emitterMaterial_OnChangesMade(object sender, ObiEmitterMaterial.MaterialChangeEventArgs e)
        {
            ObiEmitterMaterial material = sender as ObiEmitterMaterial;
            int index = emitterMaterials.IndexOf(material);

            if (index >= 0)
            {
                Oni.SetFluidMaterials(oniSolver, new Oni.FluidMaterial[] { material.GetEquivalentOniMaterial(parameters.mode) }, 1, index);
            }
        }