Renderer · interface
LocalExposureOptions
Local exposure as a shape rather than one strength: each region turned about middle grey at the frame's exposure, the real-time form most engines expose.
Explained in Hello world.
interface LocalExposureOptionsimport type { LocalExposureOptions } from '@driftengine/core';In depth
A region's level is its stops from that grey: it keeps highlightContrast of them where it is
brighter and shadowContrast where it is darker, so 1 leaves it where it is and 0 brings it all
the way to grey. A pixel keeps detail of its own stops from its region, so above 1 sharpens the
texture inside a region a curve would have flattened. What it gives up is the held level the
one-number form turns about: a frame metered far from grey, a night, is pulled toward grey rather
than toward itself, which is what the form is for and what a caller holding a night dark leaves
off.
Properties
| Name | Type | Description |
|---|---|---|
highlightContrastreadonly | number | The share of a region's stops above middle grey it keeps. 1 is none moved. |
shadowContrastreadonly | number | The share it keeps below. |
detailreadonlyoptional | number | The share of a pixel's own stops from its region it keeps. Default 1. |
blurredBlendreadonlyoptional | number | How far a region's level leans from its bilateral band toward its tile's mean. Default 0.4. |
middleGreyBiasreadonlyoptional | number | Stops added to middle grey, the level regions turn about. Default 0. |
rangereadonlyoptional | number | The furthest a region moves either way, in stops. Default 8. |