HTWG-VirtualReality / prototyp

0 stars 0 forks source link

Extract image and text of vr-box to behaviours #71

Closed phaldan closed 7 years ago

magoeke commented 7 years ago

It'd be nice if the image behavior also works for every element not only vr-box.

Maybe you can use the vr-text element for texts?

phaldan commented 7 years ago

I have added a new FrontSide behaviour with a registerFrontSide(...) method. Text and Image behaviour will inherit from this behaviour. With this approach the polymer element can tell the behaviours which THREE.MeshBasicMaterial is the front facing one.