pixijs / layers

Separate the z-hierarchy of your scene tree from its canonical structure.
https://pixijs.io/layers/docs/
MIT License
224 stars 57 forks source link

sprite lightGroup patterns ? #27

Closed jonlepage closed 6 years ago

jonlepage commented 6 years ago

I am experimenting something. Is it possible to create our own patterns of light with sprites? How i can perform this ? example here image

new PIXI.lights.PointLight(0xffffff, 2, texturePatterns); ?? or a way to convert a sprite to a light patern ? Patterns.parentGroup = PIXI.lights.lightGroup not work image thank

ivanpopelyshev commented 6 years ago

Your texture doesnt have any direction baked in. Are you sure that you need normals and not just simple multiply or overlay light?

Of course its possible, but you have to be able to modify pixi-lights and fully understand how it works to do that.

Multiply or adjustment will look better here.