load mat layers from settings

This commit is contained in:
4sval 2023-02-25 02:43:35 +01:00
parent 5d730f0bc1
commit 2e1809793b
4 changed files with 5 additions and 4 deletions

@ -1 +1 @@
Subproject commit 4ac22af1ff164287f936730bec57261f997ce734
Subproject commit e9a88678cc4fffecb6a5ee6dfbd3b94df0648d61

View File

@ -31,7 +31,7 @@ public class Options
public readonly Dictionary<string, Texture> Icons;
private ETexturePlatform _platform;
private readonly ETexturePlatform _platform;
public Options()
{

View File

@ -7,6 +7,7 @@ using CUE4Parse.UE4.Assets.Exports.Texture;
using CUE4Parse.UE4.Objects.Core.Math;
using CUE4Parse.UE4.Objects.Core.Misc;
using FModel.Extensions;
using FModel.Settings;
using FModel.Views.Snooper.Models;
using ImGuiNET;
using OpenTK.Graphics.OpenGL4;
@ -66,7 +67,7 @@ public class Material : IDisposable
{
Name = unrealMaterial.Name;
Path = unrealMaterial.GetPathName();
unrealMaterial.GetParams(Parameters, EMaterialFormat.AllLayers);
unrealMaterial.GetParams(Parameters, UserSettings.Default.MaterialExportFormat);
}
public void Setup(Options options, int uvCount)

View File

@ -21,6 +21,7 @@ public static class TextureHelper
// B: Metallic
case "hk_project":
case "cosmicshake":
case "phoenix":
{
unsafe
{
@ -42,7 +43,6 @@ public static class TextureHelper
case "shootergame":
case "divineknockout":
case "moonman":
case "marsman":
{
unsafe
{