vue3-pixi-projection
TypeScript icon, indicating that this package has built-in type declarations

0.9.1 • Public • Published

Vue 3 Pixi Projection

Vue for PixiJS Projection based on vue3-pixi


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

License

MIT License © 2022-PRESENT hairyf

Readme

Keywords

Package Sidebar

Install

npm i vue3-pixi-projection

Weekly Downloads

1

Version

0.9.1

License

MIT

Unpacked Size

26.9 kB

Total Files

12

Last publish

Collaborators

  • tuimao