@pixi/filter-simple-lightmap
v5.1.1
Published
PixiJS filter to create a light-map from a texture
Downloads
51,752
Readme
SimpleLightmapFilter
PixiJS filter to create a light-map from a texture.
Installation
npm install @pixi/filter-simple-lightmap
Usage
import {SimpleLightmapFilter} from '@pixi/filter-simple-lightmap';
import {Container} from 'pixi.js';
const container = new Container();
container.filters = [new SimpleLightmapFilter(texture, [0, 0, 0, 0.5])];
Documentation
See https://filters.pixijs.download/main/docs/SimpleLightmapFilter.html