Skip to content

Commit

Permalink
chore: add text drop shadow example
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoiver committed Jan 27, 2025
1 parent 777a962 commit 994caa1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/site/docs/example/text-dropshadow.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ publish: false
---

<script setup>
import TextDropshadow from '../components/TextDropshadow.vue'
import TextDropShadow from '../components/TextDropShadow.vue'
</script>

Use offset when sampling SDF texture to implement drop shadow effect, see [Pixi.js DropShadow Filter].

<TextDropshadow />
<TextDropShadow />

```ts
const text = new Text({
Expand Down
4 changes: 2 additions & 2 deletions packages/site/docs/zh/example/text-dropshadow.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ publish: false
---

<script setup>
import TextDropshadow from '../../components/TextDropshadow.vue'
import TextDropShadow from '../../components/TextDropShadow.vue'
</script>

在 SDF 纹理采样时使用偏移量实现阴影效果,可以参考:[Pixi.js DropShadow Filter]

<TextDropshadow />
<TextDropShadow />

```ts
const text = new Text({
Expand Down

0 comments on commit 994caa1

Please sign in to comment.