mirror of
https://github.com/GoogleChrome/chrome-extensions-samples.git
synced 2026-03-26 13:19:49 +07:00
Hello 3D World
A basic application using WebGL capabilities. It loads a 3D model from a JSON file and allows for model rotation and camera zooming, based on mouse movements. Dragging the mouse enters pointer lock, allowing movement unlimited by window or screen boundaries.
This sample uses the frameless window:
chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('index.html',
{frame: 'none', innerBounds: {width: 500, height: 400}});
});
