Skip to content

Commit 2bfe923

Browse files
update doc
1 parent 61d3862 commit 2bfe923

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

docs/.vitepress/theme/components/pmdrs/ToneMappingDemo.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import { ContactShadows, Environment, Levioso, OrbitControls, useGLTF } from '@tresjs/cientos'
2+
import { ContactShadows, Environment, OrbitControls, useGLTF } from '@tresjs/cientos'
33
import { dispose, TresCanvas } from '@tresjs/core'
44
import { TresLeches, useControls } from '@tresjs/leches'
55
import { EffectComposerPmndrs, ToneMappingPmndrs } from '@tresjs/post-processing'
@@ -53,9 +53,7 @@ onUnmounted(() => {
5353
/>
5454
<OrbitControls />
5555

56-
<Levioso :speed=".5" :rotation-factor=".5" :float-factor="2" :range="[0, .5]">
57-
<primitive ref="modelRef" :object="model" :position-y="-.5" :scale=".25" />
58-
</Levioso>
56+
<primitive ref="modelRef" :object="model" :position-y="-.5" :scale=".25" />
5957

6058
<Suspense>
6159
<Environment background :blur=".35" preset="dawn" />

docs/guide/pmndrs/tone-mapping.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@
77
The `ToneMapping` effect from the [`postprocessing`](https://pmndrs.github.io/postprocessing/public/docs/class/src/effects/ToneMappingEffect.js~ToneMappingEffect.html) package provides an abstraction for various tone mapping algorithms to improve the visual rendering of HDR (high dynamic range) content. Tone mapping is used to map high-range brightness values to a range that is displayable on standard screens. This effect contributes significantly to the visual quality of your scene by controlling luminance and color balance.
88

99
::: info
10-
If the colors in your scene look incorrect after adding the EffectComposer, it might be because tone mapping is deactivated by default, which is normal behavior. Add `<ToneMapping>` manually as an effect at the end of the `<EffectComposer>` to fix this.
10+
If the colors in your scene look incorrect after adding the EffectComposer, it might be because tone mapping is deactivated by default, which is normal behavior. Add `<ToneMappingPmndrs>` manually as an effect at the end of the `<EffectComposerPmndrs>` to fix this.
1111
:::
1212

1313
## Usage
1414

15-
The `<ToneMapping>` component is easy to set up and comes with multiple tone mapping modes to suit different visual requirements. Below is an example of how to use it in a Vue application.
15+
The `<ToneMappingPmndrs>` component is easy to set up and comes with multiple tone mapping modes to suit different visual requirements. Below is an example of how to use it in a Vue application.
1616

1717
```vue{2,4,7-8,32-36}
1818
<script setup lang="ts">
19-
import { EffectComposer, ToneMapping } from '@tresjs/post-processing/pmndrs'
19+
import { EffectComposerPmndrs, ToneMappingPmndrs } from '@tresjs/post-processing/pmndrs'
2020
import { onUnmounted, shallowRef } from 'vue'
2121
import { ToneMappingMode } from 'postprocessing'
2222
@@ -47,9 +47,9 @@ onUnmounted(() => {
4747
<primitive ref="modelRef" :object="model" />
4848
4949
<Suspense>
50-
<EffectComposer>
51-
<ToneMapping :mode="ToneMappingMode.AGX" />
52-
</EffectComposer>
50+
<EffectComposerPmndrs>
51+
<ToneMappingPmndrs :mode="ToneMappingMode.AGX" />
52+
</EffectComposerPmndrs>
5353
</Suspense>
5454
</TresCanvas>
5555
</template>

0 commit comments

Comments
 (0)