jonlepage / pixi-blit

High-performance antialias for PixiJS webgl2 with webgl1 fallback

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pixi-blit

PixiJS v5 advanced buffer for caching and antialiasing.

WebGL1

It works with WebGL1 despite the fact that there's no MSAA framebuffers API in WebGL1.

However, you have to take extra steps to ensure that resources for AA also live in temporary context of your buffer.

Webpack, browserify, Angular

Its a bit tricky. You have to put this thing in one of your root files that are loaded before everything else!

Make sure that you dont have two copies of pixiJS: one from html, one from browserify, it happens.

import * as PIXI from "pixi.js';
window.PIXI = PIXI;
import "pixi-blit"; //or require("pixi-blit")

About

High-performance antialias for PixiJS webgl2 with webgl1 fallback

License:MIT License


Languages

Language:TypeScript 80.7%Language:JavaScript 19.3%