From 66c2cd16debc930141d075bb620a2b08477eca3c Mon Sep 17 00:00:00 2001 From: vis-prime Date: Fri, 31 Oct 2025 22:18:23 +0530 Subject: [PATCH] docs: update tone mapping examples and props table --- docs/effects/tone-mapping.mdx | 34 ++++++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 10 deletions(-) diff --git a/docs/effects/tone-mapping.mdx b/docs/effects/tone-mapping.mdx index 5559255c..0d7cd1c7 100644 --- a/docs/effects/tone-mapping.mdx +++ b/docs/effects/tone-mapping.mdx @@ -5,6 +5,19 @@ nav: 1 A tone mapping effect. +```jsx +import { ToneMapping } from '@react-three/postprocessing' +import { ToneMappingMode } from 'postprocessing' + +return ( + +) +``` + +OR + ```jsx import { ToneMapping } from '@react-three/postprocessing' import { BlendFunction } from 'postprocessing' @@ -28,13 +41,14 @@ return ( ## Props -| Name | Type | Default | Description | -| ---------------- | ------------- | ------- | ------------------------------------------------------------------- | -| resolution | Number | 256 | The resolution of the luminance texture. Must be a power of two. | -| adaptive | boolean | true | Toggle adaptive luminance map usage | -| blendFunction | BlendFunction | | The blend function of this effect. | -| middleGrey | Number | 0.6 | The middle grey factor. | -| maxLuminance | Number | 16 | Maximum luminance | -| minLuminance | Number | 0.01 | The minimum luminance. Prevents very high exposure in dark scenes. | -| averageLuminance | Number | 1 | The average luminance. Used for the non-adaptive Reinhard operator. | -| adaptationRate | Number | 1 | The luminance adaptation rate. | +| Name | Type | Default | Description | +| ---------------- | --------------- | ------- | ------------------------------------------------------------------- | +| mode | ToneMappingMode | | The tone mapping algorithm | +| resolution | Number | 256 | The resolution of the luminance texture. Must be a power of two. | +| adaptive | boolean | true | Toggle adaptive luminance map usage | +| blendFunction | BlendFunction | | The blend function of this effect. | +| middleGrey | Number | 0.6 | The middle grey factor. | +| maxLuminance | Number | 16 | Maximum luminance | +| minLuminance | Number | 0.01 | The minimum luminance. Prevents very high exposure in dark scenes. | +| averageLuminance | Number | 1 | The average luminance. Used for the non-adaptive Reinhard operator. | +| adaptationRate | Number | 1 | The luminance adaptation rate. |