1
0
mirror of synced 2025-01-19 01:14:08 +01:00

Flip UVs on export

This commit is contained in:
KillzXGaming 2019-04-10 17:44:35 -04:00
parent cdcf14979f
commit 3a153b5ed1
6 changed files with 12 additions and 3 deletions

Binary file not shown.

View File

@ -56,9 +56,10 @@ namespace FirstPlugin.Forms
CourseMuuntScene scene;
string CourseFolder;
public void LoadCourseInfo(System.Collections.IEnumerable by, string FilePath)
{
string CourseFolder = System.IO.Path.GetDirectoryName(FilePath);
CourseFolder = System.IO.Path.GetDirectoryName(FilePath);
scene = new CourseMuuntScene(by);
//Add collsion (switch)
@ -192,7 +193,7 @@ namespace FirstPlugin.Forms
}
}
aamp.Save("DEBUG_PROBE.aamp");
aamp.Save($"{CourseFolder}/DEBUG_PROBE.aamp");
foreach (var entry in probeLightingConfig.Entries)
{
@ -248,6 +249,14 @@ namespace FirstPlugin.Forms
{
if (entry.ParamType == aampv1.ParamType.BufferUint)
probeEntry.IndexBuffer = (uint[])entry.Value;
//Experimental, just fill in indices
uint[] values = (uint[])entry.Value;
for (int i = 0; i < values.Length; i++)
{
values[i] = 0;
}
entry.Value = values;
}
}
}

View File

@ -36,7 +36,7 @@ namespace Switch_Toolbox.Library
if (ext == ".ply")
formatID = "ply";
if (v.ExportFile(scene, FileName, formatID))
if (v.ExportFile(scene, FileName, formatID, PostProcessSteps.FlipUVs))
MessageBox.Show($"Exported {FileName} Successfuly!");
else
MessageBox.Show($"Failed to export {FileName}!");