You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.2 KiB
40 lines
1.2 KiB
using System;
|
|
|
|
namespace UnityEngine.Rendering.HighDefinition
|
|
{
|
|
/// <summary>
|
|
/// Low resolution transparency upsample type..
|
|
/// </summary>
|
|
public enum LowResTransparentUpsample : byte
|
|
{
|
|
/// <summary>Bilinear upsample.</summary>
|
|
Bilinear,
|
|
/// <summary>Nearest depth upsample.</summary>
|
|
NearestDepth
|
|
}
|
|
|
|
/// <summary>
|
|
/// Global Low Resolution Transparency Settings.
|
|
/// </summary>
|
|
[Serializable]
|
|
public struct GlobalLowResolutionTransparencySettings
|
|
{
|
|
internal static GlobalLowResolutionTransparencySettings NewDefault() => new GlobalLowResolutionTransparencySettings()
|
|
{
|
|
enabled = true,
|
|
checkerboardDepthBuffer = true,
|
|
upsampleType = LowResTransparentUpsample.NearestDepth
|
|
};
|
|
|
|
/// <summary>
|
|
/// Enable low resolution transparency upsample.
|
|
/// </summary>
|
|
public bool enabled;
|
|
/// <summary>
|
|
/// Enable checkerboard depth buffer.
|
|
/// </summary>
|
|
public bool checkerboardDepthBuffer;
|
|
/// <summary>Low resolution transparency upsample type.</summary>
|
|
public LowResTransparentUpsample upsampleType;
|
|
}
|
|
}
|