Exemple #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);
            }
        }
Exemple #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);
            }
        }
Exemple #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);
            }
        }