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

a simple working example #66

Open thewayur opened 3 years ago

thewayur commented 3 years ago

i m new to canvas, pixi, gsap, pixi-particles and now this pixi-layers. so pardon me for this noob que,

i tried to open light example, but it seems to be outdated.

so can u guyz please give me a very simple example in a single page with pixi 6, gsap 3 and ur current pixi layers?

what i m asking to sort layers on demand at run time. thanks

ivanpopelyshev commented 3 years ago

I'll look into this today or tomorrow :)

ivanpopelyshev commented 3 years ago

Wait, do you mean lights with normals? we dont have it for pixi-v5 and v6 :(

Everything else works - https://pixijs.io/examples/#/plugin-layers/lighting.js works fine

thewayur commented 3 years ago

Wait, do you mean lights with normals? we dont have it for pixi-v5 and v6 :(

Everything else works - https://pixijs.io/examples/#/plugin-layers/lighting.js works fine

yes , this example working now, i m silly (my computer as well i.e. loading from cache) well this example working fine with my localhost. THANKS FOR EXAMPLE

but again, i m so confused because i m not able to figure out how to rearrange individual bunny. sorry i m new in pixi

thewayur commented 3 years ago

Wait, do you mean lights with normals? we dont have it for pixi-v5 and v6 :(

Everything else works - https://pixijs.io/examples/#/plugin-layers/lighting.js works fine

sorry for m mistake, actually i had hard reloaded 5 6 times and the assests were loading from cache, hence not rendering any bunny.. weird chrome cache