PixiJS filter to create a light-map from a texture
npm install @pixi/filter-simple-lightmap> PixiJS filter to create a light-map from a texture.
``bash`
npm install @pixi/filter-simple-lightmap
`js
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])];
``
See https://filters.pixijs.download/main/docs/SimpleLightmapFilter.html