povdocs / webvr-starter-kit

Other
298 stars 59 forks source link

callback event for when object is in view or not #18

Closed brianchirls closed 9 years ago

brianchirls commented 9 years ago

lookat and lookaway events are useful but only fire when looking directly at object (or not). @simonhultgren requested events that fire whether an object is in view at all. This is a good idea.

brianchirls commented 9 years ago

I'm gonna implement this as a boolean property on the object, not as an event, since that will be more performant.

brianchirls commented 9 years ago

still need to document this

brianchirls commented 9 years ago

See this live working example http://jsbin.com/pejumi/edit?js