node package manager
Painless code sharing. npm Orgs help your team discover, share, and reuse code. Create a free org »

@pixi/filter-simple-lightmap

simple-lightmapFilter

PixiJS v4 filter to render DisplayObject as simple-lightmap text.

Installation

npm install @pixi/filter-simple-lightmap

Usage

import {SimpleLightmapFilter} from '@pixi/filter-simple-lightmap';
 
const container = new PIXI.Container();
container.filters = [new SimpleLightmapFilter(texture, [0, 0, 0, 0.5])];

Documentation

See https://pixijs.github.io/pixi-filters/docs