Skip to content

Commit aa6f12c

Browse files
final effect source code
1 parent 5306e7d commit aa6f12c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

playground/src/pages/postprocessing/ascii.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<script setup lang="ts">
2-
import { ContactShadows, Environment, OrbitControls } from '@tresjs/cientos'
2+
import { Environment, OrbitControls } from '@tresjs/cientos'
33
import { TresCanvas } from '@tresjs/core'
44
import { TresLeches, useControls } from '@tresjs/leches'
55
import { NoToneMapping } from 'three'
6-
import { ASCIITexture, BlendFunction } from 'postprocessing'
6+
import { BlendFunction } from 'postprocessing'
77
import { ASCIIPmndrs, EffectComposerPmndrs } from '@tresjs/post-processing'
88
99
import '@tresjs/leches/styles'
@@ -27,11 +27,11 @@ const { enabled, blendFunction, opacity, cellSize, inverted, color, useSceneColo
2727
useSceneColor: false,
2828
color: '#ffffff',
2929
inverted: false,
30-
characters: { value: '@#8&$%*o!;.', label: 'Characters' },
31-
font: { value: 'Arial', label: 'Font' },
32-
fontSize: { value: 54, step: 1, min: 10, max: 100, label: 'Font Size' },
33-
size: { value: 1024, step: 128, min: 256, max: 2048, label: 'Texture Size' },
34-
cellCount: { value: 16, step: 1, min: 4, max: 64, label: 'Cell Count' },
30+
characters: { value: '@#8&$%*o!;.' },
31+
font: { value: 'Arial' },
32+
fontSize: { value: 54, step: 1, min: 10, max: 100 },
33+
size: { value: 1024, step: 128, min: 256, max: 2048, label: 'textureSize' },
34+
cellCount: { value: 16, step: 1, min: 4, max: 64 },
3535
})
3636
</script>
3737

src/core/pmndrs/ASCIIPmndrs.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export interface ASCIIPmndrsProps {
4141
4242
const props = defineProps<ASCIIPmndrsProps>()
4343
44-
const plainEffect = new ASCIITexture()
44+
const plainEffect = new ASCIIEffect()
4545
4646
const { pass, effect } = useEffectPmndrs(() => new ASCIIEffect(), props)
4747

0 commit comments

Comments
 (0)