mirror of
https://github.com/AssetRipper/AssetRipper.git
synced 2025-12-11 20:15:29 +01:00
50 lines
1.2 KiB
C#
50 lines
1.2 KiB
C#
using AssetRipper.SourceGenerated.Enums;
|
|
|
|
namespace AssetRipper.SourceGenerated.Extensions
|
|
{
|
|
public static class TextureUsageModeExtensions
|
|
{
|
|
/*
|
|
/// <summary>
|
|
/// Not a lightmap
|
|
/// </summary>
|
|
Default = 0,
|
|
/// <summary>
|
|
/// Range [0;2] packed to [0;1] with loss of precision
|
|
/// </summary>
|
|
BakedLightmapDoubleLDR = 1,
|
|
/// <summary>
|
|
/// Range [0;kLightmapRGBMMax] packed to [0;1] with multiplier stored in the alpha channel
|
|
/// </summary>
|
|
BakedLightmapRGBM = 2,
|
|
/// <summary>
|
|
/// Compressed DXT5 normal map
|
|
/// </summary>
|
|
NormalmapDXT5nm = 3,
|
|
/// <summary>
|
|
/// Plain RGB normal map
|
|
/// </summary>
|
|
NormalmapPlain = 4,
|
|
RGBMEncoded = 5,
|
|
/// <summary>
|
|
/// Texture is always padded if NPOT and on low-end hardware
|
|
/// </summary>
|
|
AlwaysPadded = 6,
|
|
DoubleLDR = 7,
|
|
/// <summary>
|
|
/// Baked lightmap without any encoding
|
|
/// </summary>
|
|
BakedLightmapFullHDR = 8,
|
|
RealtimeLightmapRGBM = 9,
|
|
NormalmapASTCnm = 10,
|
|
SingleChannelRed = 11,
|
|
SingleChannelAlpha = 12,
|
|
*/
|
|
|
|
public static bool IsNormalmap(this TextureUsageMode _this)
|
|
{
|
|
return _this == TextureUsageMode.NormalmapDXT5nm || _this == TextureUsageMode.NormalmapPlain || _this == TextureUsageMode.NormalmapASTCnm;
|
|
}
|
|
}
|
|
}
|