mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-12-26 04:43:09 +00:00
26 lines
626 B
C#
26 lines
626 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using Syroot.NintenTools.NSW.Bfres;
|
|||
|
using Bfres.Structs;
|
|||
|
|
|||
|
namespace FirstPlugin
|
|||
|
{
|
|||
|
public class KsaShader
|
|||
|
{
|
|||
|
public static void LoadRenderInfo(FMAT mat, List<BfresRenderInfo> renderInfos)
|
|||
|
{
|
|||
|
foreach (var renderInfo in renderInfos)
|
|||
|
{
|
|||
|
switch (renderInfo.Name)
|
|||
|
{
|
|||
|
case "renderPass":
|
|||
|
mat.isTransparent = renderInfo.ValueString[0] == "xlu";
|
|||
|
break;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|