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

@pixi/filter-simple-lightmap

SimpleLightmapFilter

PixiJS v4 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://pixijs.github.io/pixi-filters/docs