Skip to content

Commit 3ae45bb

Browse files
clean demos
1 parent de407c4 commit 3ae45bb

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

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

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,6 @@ const { blendFunction, rotation, opacity } = useControls({
7777
watch(rotation, () => {
7878
texture.rotation = rotation.value
7979
})
80-
81-
// watch(
82-
// () => textureEffectRef.value?.effect,
83-
// () => {
84-
// if (!textureEffectRef.value?.effect) { return}
85-
86-
// use setTextureSwizzleRGBA() from TextureEffect (https://pmndrs.github.io/postprocessing/public/docs/file/src/effects/TextureEffect.js.html#lineNumber192)
87-
// textureEffectRef.value?.effect.setTextureSwizzleRGBA()
88-
// },
89-
// )
9080
</script>
9181

9282
<template>

playground/src/pages/postprocessing/texture.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ watch(rotation, () => {
5151
texture.rotation = rotation.value
5252
})
5353
54-
// watch(
54+
// Example of using TextureEffect's setTextureSwizzleRGBA function
5555
// () => textureEffectRef.value?.effect,
5656
// () => {
5757
// if (!textureEffectRef.value?.effect) { return}

0 commit comments

Comments
 (0)