mirror of
https://github.com/4sval/FModel.git
synced 2026-08-23 09:54:32 -05:00
load mat layers from settings
This commit is contained in:
Submodule CUE4Parse updated: 4ac22af1ff...e9a88678cc
@@ -31,7 +31,7 @@ public class Options
|
||||
|
||||
public readonly Dictionary<string, Texture> Icons;
|
||||
|
||||
private ETexturePlatform _platform;
|
||||
private readonly ETexturePlatform _platform;
|
||||
|
||||
public Options()
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user