vue3-pixi-projection
v0.9.6
Published
Vue createRenderer for PixiJS
Downloads
218
Readme
Try it Online
TODO
Install
pnpm install vue3-pixi-projection
Usage
using vue3-pixi-projection
requires loading the module before using vue3-pixi
import { renderer } from 'vue3-pixi'
import ProjectionRenderer from 'vue3-pixi-projection'
renderer.use(ProjectionRenderer)
in template use camera-3d
and sprite-3d
components:
<template>
<camera-3d
:focus="400"
:near="10"
:far="10000"
:orthographic="false"
>
<sprite-3d
texture="https://pixijs.io/examples/examples/assets/bunny.png"
:anchor="0.5"
:width="100"
:position-3d-z="100"
:height="140"
/>
</camera-3d>
</template>
Elements
- Camera3d
- Container2d
- Container3d
- Sprite2d
- Sprite2s
- Sprite3d
- Text2d
- Text2s
- Text3d
- TilingSprite2d
- SimpleMesh2d
- SimpleMesh3d2d
- Mesh2d
- Mesh3d2d
converts
conversion will cause unstable behavior of the renderer and is not recommended. Please use elements with specific suffixes