Name Description Size
ARCoreCameraRenderer.js Creates and load a shader from a string, type specifies either 'vertex' or 'fragment' @param {WebGLRenderingContext} gl @param {string} str @param {string} type @return {!WebGLShader} 9776
ARKitWrapper.js ARKitWrapper talks to Apple ARKit, as exposed by Mozilla's test ARDemo app. It won't function inside a browser like Firefox. ARKitWrapper is a singleton. Use ARKitWrapper.GetOrCreate() to get the instance, then add event listeners like so: if(ARKitWrapper.HasARKit()){ let arKitWrapper = ARKitWrapper.GetOrCreate() arKitWrapper.addEventListener(ARKitWrapper.INIT_EVENT, ev => { console.log('ARKit initialized', ev) }) arKitWrapper.addEventListener(ARKitWrapper.WATCH_EVENT, ev => { console.log('ARKit update', ev) }) arKitWrapper.watch({ location: boolean, camera: boolean, objects: boolean, light_intensity: boolean }) } 12179