private void Normal1_Click(object sender, EventArgs e) { FileDialog fileDialog = new OpenFileDialog(); if (fileDialog.ShowDialog() == DialogResult.OK) { polygonDrawers[0].NormalMap = ReadFile.GetNormals(fileDialog.FileName); } }
private void HeightMap2_Click(object sender, EventArgs e) { FileDialog fileDialog = new OpenFileDialog(); if (fileDialog.ShowDialog() == DialogResult.OK) { polygonDrawers[1].HeightMap = ReadFile.GetHeights(fileDialog.FileName); } }
private void Texture2_Click(object sender, EventArgs e) { FileDialog fileDialog = new OpenFileDialog(); if (fileDialog.ShowDialog() == DialogResult.OK) { polygonDrawers[1].Texture = ReadFile.GetColors(fileDialog.FileName); } }