mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-06-03 00:58:13 -04:00
32 lines
821 B
C#
32 lines
821 B
C#
namespace AssetStudio
|
|
{
|
|
public class GLTextureSettings
|
|
{
|
|
public int m_FilterMode;
|
|
public int m_Aniso;
|
|
public float m_MipBias;
|
|
public int m_WrapMode;
|
|
|
|
public GLTextureSettings() { }
|
|
|
|
public GLTextureSettings(ObjectReader reader)
|
|
{
|
|
var version = reader.version;
|
|
|
|
m_FilterMode = reader.ReadInt32();
|
|
m_Aniso = reader.ReadInt32();
|
|
m_MipBias = reader.ReadSingle();
|
|
if (version >= 2017)//2017.x and up
|
|
{
|
|
m_WrapMode = reader.ReadInt32(); //m_WrapU
|
|
int m_WrapV = reader.ReadInt32();
|
|
int m_WrapW = reader.ReadInt32();
|
|
}
|
|
else
|
|
{
|
|
m_WrapMode = reader.ReadInt32();
|
|
}
|
|
}
|
|
}
|
|
}
|