Skip to content

Commit

Permalink
added some links to threejs examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Tinoooo committed Oct 12, 2024
1 parent 1250852 commit ab4531c
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/guide/three/glitch.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ import { EffectComposer, Glitch } from '@tresjs/post-processing/three'
|---------|--------------------------------------------------------------------------------------------------------------------|---------|
| `dtSize` | The size of the generated noise map. Will be ignored if a perturbation map is provided. This prop is not reactive. | `64` |
| `goWild` | If true, the glitch effect will be more wild 🤪 | `false`

## Further Reading

see [Three.js example](https://threejs.org/examples/?q=glit#webgl_postprocessing_glitch)
4 changes: 4 additions & 0 deletions docs/guide/three/halftone.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,7 @@ import { EffectComposer, Halftone } from '@tresjs/post-processing/three'
| `blending` | The blending mode of the halftone effect. | `1` |
| `greyscale` | If true, the halftone effect will be in greyscale. | `false` |
| `blendingMode`| The blending mode used for the halftone effect. | `1` |

## Further Reading

see [Three.js example](https://threejs.org/examples/?q=halftone#webgl_postprocessing_rgb_halftone)
4 changes: 4 additions & 0 deletions docs/guide/three/pixelation.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,7 @@ import { EffectComposer, Pixelation } from '@tresjs/post-processing/three'
| `pixelSize` | The size of the pixels. Larger values result in a more pixelated appearance. | `30` |
| `depthEdgeStrength` | The strength of the depth edges. | `1.0` |
| `normalEdgeStrength`| The strength of the normal edges. | `0.5` |

## Further Reading

see [Three.js example](https://threejs.org/examples/?q=pixe#webgl_postprocessing_pixel)
4 changes: 4 additions & 0 deletions docs/guide/three/smaa.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,7 @@ import { EffectComposer, SMAA } from '@tresjs/post-processing/three'
|---------|---------------------------------------------------------------------------------------------------|---------------------------------|
| `width` | The width of the render target. If not provided, it defaults to the width of the renderer. | |
| `height`| The height of the render target. If not provided, it defaults to the height of the renderer. | |

## Further Reading

see [Three.js example](https://threejs.org/examples/?q=smaa#webgl_postprocessing_smaa)
4 changes: 4 additions & 0 deletions docs/guide/three/unreal-bloom.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,7 @@ import { EffectComposer, UnrealBloom } from '@tresjs/post-processing/three'
| `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` |

## Further Reading

see [Three.js example](https://threejs.org/examples/?q=bloom#webgl_postprocessing_unreal_bloom)
1 change: 0 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import banner from 'vite-plugin-banner'
import dts from 'vite-plugin-dts'
import pkg from './package.json'

// eslint-disable-next-line no-console
console.log(`${lightGreen('▲')} ${gray('■')} ${magenta('𝗫')} ${bold('Tres/post-processing')} v${pkg.version}`)

Check failure on line 12 in vite.config.ts

View workflow job for this annotation

GitHub Actions / Lint (20)

Unexpected console statement

// https://vitejs.dev/config/
Expand Down

0 comments on commit ab4531c

Please sign in to comment.