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
HDRTonemappingExtension
Inherited Members
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, InstantiateParameters)
Object.InstantiateAsync<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
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
Gets the target of the extension, which is a layer.
Declaration
public override CompositionLayerExtension.ExtensionTarget Target { get; }
Property Value
Type | Description |
---|---|
CompositionLayerExtension.ExtensionTarget |
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. |