From 12508524169b0b6721a868ddb9bf75a39f781bfd Mon Sep 17 00:00:00 2001 From: alvarosabu Date: Fri, 4 Oct 2024 16:21:14 +0200 Subject: [PATCH] docs: unreal bloom --- .../components/three/UnrealBloomThreeDemo.vue | 52 +++++++++++++++++++ docs/components.d.ts | 1 + docs/guide/three/unreal-bloom.md | 29 +++++++++++ 3 files changed, 82 insertions(+) create mode 100644 docs/.vitepress/theme/components/three/UnrealBloomThreeDemo.vue create mode 100644 docs/guide/three/unreal-bloom.md diff --git a/docs/.vitepress/theme/components/three/UnrealBloomThreeDemo.vue b/docs/.vitepress/theme/components/three/UnrealBloomThreeDemo.vue new file mode 100644 index 00000000..c8839336 --- /dev/null +++ b/docs/.vitepress/theme/components/three/UnrealBloomThreeDemo.vue @@ -0,0 +1,52 @@ + + + diff --git a/docs/components.d.ts b/docs/components.d.ts index de89da5d..0a9c2922 100644 --- a/docs/components.d.ts +++ b/docs/components.d.ts @@ -24,6 +24,7 @@ declare module 'vue' { RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] SMAAThreeDemo: typeof import('./.vitepress/theme/components/three/SMAAThreeDemo.vue')['default'] + UnrealBloomThreeDemo: typeof import('./.vitepress/theme/components/three/UnrealBloomThreeDemo.vue')['default'] VignetteDemo: typeof import('./.vitepress/theme/components/pmdrs/VignetteDemo.vue')['default'] } } diff --git a/docs/guide/three/unreal-bloom.md b/docs/guide/three/unreal-bloom.md new file mode 100644 index 00000000..e6d2ba64 --- /dev/null +++ b/docs/guide/three/unreal-bloom.md @@ -0,0 +1,29 @@ +# Unreal Bloom + + + + + +Unreal Bloom is an effect that simulates the bloom effect seen in many modern video games. It creates a glow around bright areas of the scene, giving it a more vibrant and dynamic look. + +## Usage + +```vue + + + +``` + +## Props + +| Prop | Description | Default | +|------------|---------------------------------------------------------------------------------------------------|---------| +| `radius` | The radius of the bloom effect. | `0` | +| `strength` | The strength of the bloom effect. | `1` | +| `threshold`| The threshold luminance for the bloom effect. | `0` |