Added texture Quantization and a window to test it

This commit is contained in:
2025-01-14 00:44:45 +01:00
parent 4c108f2ad6
commit f0bc61dd92
9 changed files with 339 additions and 17 deletions

View File

@@ -17,7 +17,7 @@ namespace PSXSplash.EditorCode
EditorGUILayout.PropertyField(serializedObject.FindProperty("Mesh"));
if (GUILayout.Button("Export mesh"))
{
comp.Mesh.Export();
comp.Mesh.Export(comp.gameObject);
}
EditorGUILayout.EndVertical();
@@ -26,7 +26,7 @@ namespace PSXSplash.EditorCode
EditorGUILayout.PropertyField(serializedObject.FindProperty("Texture"));
if (GUILayout.Button("Export texture"))
{
comp.Texture.Export();
comp.Texture.Export(comp.gameObject);
}
EditorGUILayout.EndVertical();