diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 92f9b4cc..e62a60b3 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -53,7 +53,7 @@ export default defineConfig({ { text: 'Glitch', link: '/guide/pmndrs/glitch' }, { text: 'Noise', link: '/guide/pmndrs/noise' }, { text: 'Outline', link: '/guide/pmndrs/outline' }, - { text: 'ToneMapping', link: '/guide/pmndrs/tonemapping' }, + { text: 'Tone Mapping', link: '/guide/pmndrs/tone-mapping' }, { text: 'Pixelation', link: '/guide/pmndrs/pixelation' }, { text: 'Vignette', link: '/guide/pmndrs/vignette' }, ], diff --git a/docs/.vitepress/theme/components/pmdrs/ToneMappingDemo.vue b/docs/.vitepress/theme/components/pmdrs/ToneMappingDemo.vue index 6a2ee923..d53d095f 100644 --- a/docs/.vitepress/theme/components/pmdrs/ToneMappingDemo.vue +++ b/docs/.vitepress/theme/components/pmdrs/ToneMappingDemo.vue @@ -2,7 +2,7 @@ import { ContactShadows, Environment, Levioso, OrbitControls, useGLTF } from '@tresjs/cientos' import { dispose, TresCanvas } from '@tresjs/core' import { TresLeches, useControls } from '@tresjs/leches' -import { EffectComposer, ToneMapping } from '@tresjs/post-processing/pmndrs' +import { EffectComposerPmndrs, ToneMappingPmndrs } from '@tresjs/post-processing' import { ToneMappingMode } from 'postprocessing' import { NoToneMapping } from 'three' import { onUnmounted, shallowRef } from 'vue' @@ -67,9 +67,9 @@ onUnmounted(() => { /> - - - + + + diff --git a/docs/guide/pmndrs/tonemapping.md b/docs/guide/pmndrs/tone-mapping.md similarity index 100% rename from docs/guide/pmndrs/tonemapping.md rename to docs/guide/pmndrs/tone-mapping.md diff --git a/playground/src/pages/postprocessing/tonemapping.vue b/playground/src/pages/postprocessing/tone-mapping.vue similarity index 85% rename from playground/src/pages/postprocessing/tonemapping.vue rename to playground/src/pages/postprocessing/tone-mapping.vue index 11ed36c2..4481f33a 100644 --- a/playground/src/pages/postprocessing/tonemapping.vue +++ b/playground/src/pages/postprocessing/tone-mapping.vue @@ -2,9 +2,9 @@ import { ContactShadows, Environment, OrbitControls } from '@tresjs/cientos' import { TresCanvas } from '@tresjs/core' import { TresLeches, useControls } from '@tresjs/leches' -import { EffectComposer, ToneMapping } from '@tresjs/post-processing/pmndrs' import { BlendFunction, ToneMappingMode } from 'postprocessing' import { NoToneMapping } from 'three' +import { EffectComposerPmndrs, ToneMappingPmndrs } from '@tresjs/post-processing' import '@tresjs/leches/styles' @@ -69,9 +69,9 @@ const { blendFunction, resolution, mode } = useControls({ /> - - - + + + diff --git a/playground/src/router.ts b/playground/src/router.ts index 9576c1ca..80b8ab21 100644 --- a/playground/src/router.ts +++ b/playground/src/router.ts @@ -33,7 +33,7 @@ export const threeRoutes = [ export const postProcessingRoutes = [ makeRoute('Outline', '🔲', false), - makeRoute('Tonemapping', '🎨', false), + makeRoute('Tone Mapping', '🎨', false), makeRoute('Glitch', '📺', false), makeRoute('Depth of Field', '📷', false), makeRoute('Pixelation', '👾', false), diff --git a/src/core/pmndrs/ToneMapping.vue b/src/core/pmndrs/ToneMappingPmndrs.vue similarity index 74% rename from src/core/pmndrs/ToneMapping.vue rename to src/core/pmndrs/ToneMappingPmndrs.vue index 5e3fbe84..ffe561cb 100644 --- a/src/core/pmndrs/ToneMapping.vue +++ b/src/core/pmndrs/ToneMappingPmndrs.vue @@ -1,10 +1,10 @@