Class HDRTonemappingExtension
Subclass of CompositionLayerExtension to support color scaling and biasing for the CompositionLayer instance on the same game object.
Support for this component is up the the instance of ILayerProvider currently assigned to the CompositionLayerManager.
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 |
---|---|
ColorGamut |
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
Implementations must specify which type of object this extension should be associated with.
Declaration
public override CompositionLayerExtension.ExtensionTarget Target { get; }
Property Value
Type | Description |
---|---|
CompositionLayerExtension.ExtensionTarget |
Overrides
Methods
GetNativeStructPtr()
Implementations must return a pointer to this extension's native struct.
Declaration
public override void* GetNativeStructPtr()
Returns
Type | Description |
---|---|
void* | the pointer to extension's native struct. |
Overrides
Remarks
This method is called by OpenXRLayerUtility.GetExtensionsChain(CompositionLayerManager.LayerInfo layer, ExtensionTarget extensionTarget) when
it initializes an object's Next
pointer struct chain member. Layer handlers can
use this chain to access native extension properties.