Beispiel #1
0
        private void Normal1_Click(object sender, EventArgs e)
        {
            FileDialog fileDialog = new OpenFileDialog();

            if (fileDialog.ShowDialog() == DialogResult.OK)
            {
                polygonDrawers[0].NormalMap = ReadFile.GetNormals(fileDialog.FileName);
            }
        }
Beispiel #2
0
        private void HeightMap2_Click(object sender, EventArgs e)
        {
            FileDialog fileDialog = new OpenFileDialog();

            if (fileDialog.ShowDialog() == DialogResult.OK)
            {
                polygonDrawers[1].HeightMap = ReadFile.GetHeights(fileDialog.FileName);
            }
        }
Beispiel #3
0
        private void Texture2_Click(object sender, EventArgs e)
        {
            FileDialog fileDialog = new OpenFileDialog();

            if (fileDialog.ShowDialog() == DialogResult.OK)
            {
                polygonDrawers[1].Texture = ReadFile.GetColors(fileDialog.FileName);
            }
        }