Skip to content

Commit

Permalink
[GI] 4.6.0 Material fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yarik0chka committed Jun 7, 2024
1 parent 45fb0c0 commit 50d481b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions AssetStudio/Classes/Material.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ namespace AssetStudio
{
public class UnityTexEnv
{
private static bool HasMaxMipLevel(SerializedType type) => type.Match("E1EE5B1091AC21B95BAED1351F8FB1C2");

public PPtr<Texture> m_Texture;
public Vector2 m_Scale;
public Vector2 m_Offset;
Expand All @@ -14,6 +16,10 @@ public UnityTexEnv(ObjectReader reader)
m_Texture = new PPtr<Texture>(reader);
m_Scale = reader.ReadVector2();
m_Offset = reader.ReadVector2();
if (HasMaxMipLevel(reader.serializedType))
{
reader.ReadBytes(4);
}
if (reader.Game.Type.IsArknightsEndfield())
{
var m_UVSetIndex = reader.ReadInt32();
Expand Down

2 comments on commit 50d481b

@yarik0chka
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

4.7.0* 😭

@rainbowwarmth
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

4.7.0什么时候

Please sign in to comment.