Class HDRTonemappingExtension
Subclass of Composition
Support for this component is up the the instance of ILayer
If this extension is not added to a layer game object, it is expected that the provider will assume no color scale/bias is to be applied.
Inheritance
Inherited Members
Namespace: Unity.XR.CompositionLayers .Extensions
Assembly: Unity.XR.CompositionLayers.dll
Syntax
[ExecuteAlways]
[DisallowMultipleComponent]
[AddComponentMenu("XR/Composition Layers/Extensions/HDR Tonemapping")]
public class HDRTonemappingExtension : CompositionLayerExtension
Properties
ColorGamut
The value used to color gamut for the source texture.
Declaration
public ColorGamut ColorGamut { get; set; }
Property Value
Type | Description |
---|---|
Color |
MaxDisplayNits
The value used to describe max display nits for the source texture.
Declaration
public int MaxDisplayNits { get; set; }
Property Value
Type | Description |
---|---|
int |
NitsForPaperWhite
The value used to describe nits for paper white for the source texture.
Declaration
public int NitsForPaperWhite { get; set; }
Property Value
Type | Description |
---|---|
int |
Target
Gets the target of the extension, which is a layer.
Declaration
public override CompositionLayerExtension.ExtensionTarget Target { get; }
Property Value
Type | Description |
---|---|
Composition |
Overrides
Methods
GetNativeStructPtr()
Retrieves a pointer to the native structure.
Declaration
public override void* GetNativeStructPtr()
Returns
Type | Description |
---|---|
void* | A null pointer as this extension does not use a native structure. |