public void UpdateMaterial() { int type = materialType[dropDown.value]; Debug.Log("Type: " + type); if (selectionManager) { List <string> selection = selectionManager.GetSelection(); foreach (string selected in selection) { MeshExposure exp = GameObject.Find(selected).GetComponent <SessionModel>().GetExposure(); exp.Material = type; exp.Exposure = ExposureCalculator.ComputeExposure(exp.Faces, exp.Material); } } UpdateExposure(); }
private void Awake() { model = new MeshedModel(50, 200, 50, 1); exposure = new MeshExposure(); }