pixijs / lights

Adds dynamic lighting via deferred shading to PixiJS
https://pixijs.io/lights/docs/index.html
MIT License
205 stars 29 forks source link

Can't find variable: PIXI #40

Open bdanis opened 5 years ago

bdanis commented 5 years ago

typescript project using pixi-js 5.0.3 and importing this way import * as PIXI from 'pixi.js' I was getting an error where PointLike wasn't found and in the browser I get a compilation error where lights can't find the PIXI package.

ivanpopelyshev commented 5 years ago

Lights are not converted to v5 yet, but its close. pixi-layers has v5 branch :)

bdanis commented 5 years ago

thanks for the info!

bdanis commented 5 years ago

i tried downgrading, here is my package excerpt

```
"pixi-filters": "^3.0.3",
"pixi-layers": "^0.1.6",
"pixi-lights": "^2.0.3",
"pixi.js": "^4.8.8",


but getting a type error
`TypeError: undefined is not an object (evaluating 'new PIXI.display.Group')`