コード例 #1
0
ファイル: UIManager.cs プロジェクト: albanlandry/mesh-cutter
    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();
    }
コード例 #2
0
 private void Awake()
 {
     model    = new MeshedModel(50, 200, 50, 1);
     exposure = new MeshExposure();
 }