Add Transparent Lighting Modes for material with option to use non-directional shading

This commit is contained in:
Wojciech Figat
2022-07-14 09:21:09 +02:00
parent 047821f7d2
commit 85f351663b
14 changed files with 254 additions and 52 deletions

View File

@@ -69,9 +69,9 @@ public:
/// </summary>
MaterialInfo8 MaterialInfo;
};
/// <summary>
/// File header, version 19
/// [Deprecated on 13.07.2022, expires on 13.07.2024]
/// </summary>
struct Header19
{
@@ -115,8 +115,53 @@ public:
}
};
/// <summary>
/// File header, version 20
/// </summary>
struct Header20
{
static const int32 Version = 20;
union
{
struct
{
} Shader;
struct
{
/// <summary>
/// The material graph version.
/// </summary>
int32 GraphVersion;
/// <summary>
/// The material additional information.
/// </summary>
MaterialInfo10 Info;
} Material;
struct
{
/// <summary>
/// The particle emitter graph version.
/// </summary>
int32 GraphVersion;
/// <summary>
/// The custom particles data size (in bytes).
/// </summary>
int32 CustomDataSize;
} ParticleEmitter;
};
Header20()
{
}
};
/// <summary>
/// Current header type
/// </summary>
typedef Header19 Header;
typedef Header20 Header;
};