Documentation

Unity Engine

Download Unity

Unity Engine

VideoTonemapMode

Options for where a VideoPlayer maps high dynamic range (HDR) video to the brightness range of the display.
Read time 1 minuteLast updated 4 hours ago

Definition

public enum VideoTonemapMode

Remarks

Set this value with VideoPlayer.tonemapMode.
Choose the option that matches where the video is displayed. A video inside the scene is usually processed by the render pipeline tonemapper, so use VideoTonemapMode.None. A video in a UI overlay isn't processed by any tonemapper, so use VideoTonemapMode.HDRToSDR.
Standard dynamic range (SDR) video is unaffected.

Examples

using UnityEngine;using UnityEngine.Video;public class TonemapExample : MonoBehaviour{ void Start() { // This video is displayed in a UI overlay, which no render pipeline tonemapper processes. var videoPlayer = GetComponent<VideoPlayer>(); videoPlayer.tonemapMode = VideoTonemapMode.HDRToSDR; }}

Fields

Value

Description

HDRToSDRMaps the HDR video to the SDR range.
NoneLeaves the HDR video for the render pipeline tonemapper to process.