youmustfight / aframe-asset-lazy-load

An a-entity component to assign asset loading order and delays
https://youmustfight.github.io/aframe-asset-lazy-load/
MIT License
13 stars 6 forks source link

Define src with a chunk once #4

Open youmustfight opened 8 years ago

youmustfight commented 8 years ago

The goal is to have corresponding entities change materials when the asset is loaded. This means, I can assign an ID, and expect the request to be placed in the appropriate chunk.

ex:

<a-entity lazy-load=" src: background.png; id: "logo"; chunk: 1; "></a-entity>

<a-entity lazy-load=" id: "logo"; "></a-entity>

When the load manifest is being sorted out, that second entity will be positioned to have it's material changed in chunk 1.