Compare commits
No commits in common. "fcf0c6a503b1092ea93024858781ed095b71fd55" and "ed13b4edc0df36fcde7093c260d6c8d3a289def4" have entirely different histories.
fcf0c6a503
...
ed13b4edc0
|
@ -1,10 +1,13 @@
|
||||||
<Project Sdk="Godot.NET.Sdk/4.3.0">
|
<Project Sdk="Godot.NET.Sdk/4.3.0">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net8.0</TargetFramework>
|
<TargetFramework>net8.0</TargetFramework>
|
||||||
|
<!-- <TargetFramework Condition=" '$(GodotTargetPlatform)' == 'android' ">net7.0</TargetFramework>
|
||||||
|
<TargetFramework Condition=" '$(GodotTargetPlatform)' == 'ios' ">net8.0</TargetFramework> -->
|
||||||
<EnableDynamicLoading>true</EnableDynamicLoading>
|
<EnableDynamicLoading>true</EnableDynamicLoading>
|
||||||
<RootNamespace>ThiefMissionViewer</RootNamespace>
|
<RootNamespace>ThiefMissionViewer</RootNamespace>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<PackageReference Include="rectpacksharp" Version="1.2.0" />
|
||||||
<PackageReference Include="SixLabors.ImageSharp" Version="3.1.5" />
|
<PackageReference Include="SixLabors.ImageSharp" Version="3.1.5" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
|
@ -284,8 +284,7 @@ public partial class Mission : Node3D
|
||||||
{
|
{
|
||||||
var overrideMat = new StandardMaterial3D
|
var overrideMat = new StandardMaterial3D
|
||||||
{
|
{
|
||||||
AlbedoTexture = TextureLoader.LoadTexture(path),
|
AlbedoTexture = TextureLoader.LoadTexture(path)
|
||||||
Transparency = BaseMaterial3D.TransparencyEnum.AlphaDepthPrePass,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
var surfaceCount = model.Mesh.GetSurfaceCount();
|
var surfaceCount = model.Mesh.GetSurfaceCount();
|
||||||
|
|
|
@ -65,8 +65,7 @@ public class ModelLoader
|
||||||
|
|
||||||
var mat = new StandardMaterial3D
|
var mat = new StandardMaterial3D
|
||||||
{
|
{
|
||||||
AlbedoTexture = TextureLoader.LoadTexture(path),
|
AlbedoTexture = TextureLoader.LoadTexture(path)
|
||||||
Transparency = BaseMaterial3D.TransparencyEnum.AlphaDepthPrePass,
|
|
||||||
};
|
};
|
||||||
var name = material.Name.ToLower();
|
var name = material.Name.ToLower();
|
||||||
for (var i = 0; i < 4; i++)
|
for (var i = 0; i < 4; i++)
|
||||||
|
|
|
@ -6,7 +6,6 @@ namespace KeepersCompound.TMV;
|
||||||
public partial class TextureLoader
|
public partial class TextureLoader
|
||||||
{
|
{
|
||||||
// TODO: Replace this with my own implementation lol
|
// TODO: Replace this with my own implementation lol
|
||||||
// TODO: Alpha!?
|
|
||||||
// References:
|
// References:
|
||||||
// - https://www.w3.org/Graphics/GIF/spec-gif89a.txt
|
// - https://www.w3.org/Graphics/GIF/spec-gif89a.txt
|
||||||
private static ImageTexture LoadGif(string path)
|
private static ImageTexture LoadGif(string path)
|
||||||
|
|
|
@ -38,8 +38,7 @@ public partial class TextureLoader
|
||||||
var r = reader.ReadByte() / 255.0f;
|
var r = reader.ReadByte() / 255.0f;
|
||||||
var g = reader.ReadByte() / 255.0f;
|
var g = reader.ReadByte() / 255.0f;
|
||||||
var b = reader.ReadByte() / 255.0f;
|
var b = reader.ReadByte() / 255.0f;
|
||||||
var a = (i == 0) ? 0.0f : 1.0f;
|
palette[i] = new Color(r, g, b);
|
||||||
palette[i] = new Color(r, g, b, a);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue