├── prettierrc.json ├── README.md ├── webvr ├── aframe-demo │ ├── metal003.png │ ├── package.json │ ├── .gitignore │ ├── index.html │ ├── LICENSE │ └── README.md ├── raw-webgl-example │ ├── metal003.png │ ├── cubetexture.png │ ├── webgl.css │ ├── index.html │ ├── glUtils.js │ ├── sylvester.js │ └── webgl-demo.js ├── raw-webgl-controller-example │ ├── metal003.png │ ├── cubetexture.png │ ├── webgl.css │ ├── index.html │ ├── glUtils.js │ ├── sylvester.js │ └── webgl-demo.js ├── stage-parameters-test │ └── index.html ├── README.md ├── field-of-view-test │ └── index.html ├── basic-display-info │ └── index.html └── vr-controller-basic-info │ └── index.html ├── canvas-raycaster ├── Player.js ├── trace.css ├── trace.js ├── input.js ├── Level.js ├── index.html └── RayCaster.js ├── .github ├── dependabot.yml ├── CODEOWNERS ├── PULL_REQUEST_TEMPLATE ├── ISSUE_TEMPLATE │ ├── config.yml │ └── bug.yml └── labels.json ├── .editorconfig ├── CODE_OF_CONDUCT.md ├── REVIEWING.md ├── SECURITY.md ├── CONTRIBUTING.md └── LICENSE /prettierrc.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # museum 2 | A historic collection of MDN Web Docs content and examples 3 | -------------------------------------------------------------------------------- /webvr/aframe-demo/metal003.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdn/museum/main/webvr/aframe-demo/metal003.png -------------------------------------------------------------------------------- /webvr/raw-webgl-example/metal003.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdn/museum/main/webvr/raw-webgl-example/metal003.png -------------------------------------------------------------------------------- /webvr/raw-webgl-example/cubetexture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdn/museum/main/webvr/raw-webgl-example/cubetexture.png -------------------------------------------------------------------------------- /webvr/raw-webgl-controller-example/metal003.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdn/museum/main/webvr/raw-webgl-controller-example/metal003.png -------------------------------------------------------------------------------- /webvr/raw-webgl-controller-example/cubetexture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdn/museum/main/webvr/raw-webgl-controller-example/cubetexture.png -------------------------------------------------------------------------------- /canvas-raycaster/Player.js: -------------------------------------------------------------------------------- 1 | function Player(s) { 2 | this.health = 100; 3 | this.speed = { 4 | forward : s, 5 | backward: .8 * s, 6 | turn : 2 * s 7 | }; 8 | } -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | updates: 3 | - package-ecosystem: github-actions 4 | directory: / 5 | schedule: 6 | interval: weekly 7 | commit-message: 8 | prefix: "ci(deps): " 9 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # EditorConfig is awesome: https://EditorConfig.org 2 | 3 | # top-most EditorConfig file 4 | root = true 5 | 6 | [*] 7 | indent_style = space 8 | indent_size = 2 9 | end_of_line = lf 10 | charset = utf-8 11 | trim_trailing_whitespace = true 12 | insert_final_newline = true 13 | 14 | [*.md] 15 | trim_trailing_whitespace = false 16 | -------------------------------------------------------------------------------- /canvas-raycaster/trace.css: -------------------------------------------------------------------------------- 1 | .window { 2 | z-index: 10; 3 | position: absolute; 4 | left: 10px; 5 | top: 10px; 6 | width: 30%; 7 | color: #00FF00; 8 | background-color: #001100; 9 | opacity: .80; 10 | border: 2px solid #000000; 11 | font-family: "Lucida Console", "Monaco", "Courier New", Courier, mono; 12 | font-size: small; 13 | } 14 | ul { 15 | margin: 0px; 16 | padding: 0px; 17 | } 18 | li { 19 | list-style-type: none; 20 | } -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Code of conduct 2 | 3 | This repository is governed by Mozilla's code of conduct and etiquette guidelines. 4 | For more details, read [Mozilla's Community Participation Guidelines](https://www.mozilla.org/about/governance/policies/participation/). 5 | 6 | ## Reporting violations 7 | 8 | For more information on how to report violations of the Community Participation Guidelines, read the [How to report](https://www.mozilla.org/about/governance/policies/participation/reporting/) page. 9 | -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | # ---------------------------------------------------------------------------- 2 | # CODEOWNERS 3 | # ---------------------------------------------------------------------------- 4 | # Order is important. The last matching pattern takes precedence. 5 | # See: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners 6 | # ---------------------------------------------------------------------------- 7 | 8 | /.github/workflows/ @mdn/engineering 9 | /.github/CODEOWNERS @mdn/engineering 10 | /SECURITY.md @mdn/engineering 11 | -------------------------------------------------------------------------------- /webvr/aframe-demo/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "aframe-hello-world-boilerplate", 3 | "description": "Boilerplate with A-Frame's 'Hello, World!' of WebVR.", 4 | "version": "0.3.0", 5 | "license": "MIT", 6 | "scripts": { 7 | "start": "budo --live --verbose --port 3000 --open", 8 | "deploy": "ghpages", 9 | "ghpages": "ghpages" 10 | }, 11 | "devDependencies": { 12 | "budo": "^7.0.0", 13 | "ghpages": "0.0.3" 14 | }, 15 | "keywords": [ 16 | "aframe", 17 | "aframe-example", 18 | "aframe-boilerplate", 19 | "aframe-scene", 20 | "webvr", 21 | "vr" 22 | ] 23 | } 24 | -------------------------------------------------------------------------------- /REVIEWING.md: -------------------------------------------------------------------------------- 1 | # Reviewing guide 2 | 3 | All reviewers must abide by the [code of conduct](CODE_OF_CONDUCT.md); they are also protected by the code of conduct. 4 | A reviewer should not tolerate poor behavior and is encouraged to [report any behavior](CODE_OF_CONDUCT.md#Reporting_violations) that violates the code of conduct. 5 | 6 | ## Review process 7 | 8 | The MDN Web Docs team has a well-defined review process that must be followed by reviewers in all repositories under the GitHub MDN organization. 9 | This process is described in detail on the [Pull request guidelines](https://developer.mozilla.org/en-US/docs/MDN/Community/Pull_requests) page. 10 | -------------------------------------------------------------------------------- /canvas-raycaster/trace.js: -------------------------------------------------------------------------------- 1 | var MAX_LINES = 12; 2 | var begin = '
13 |
14 | 19 |
20 |
23 |
24 |
27 |
28 |
19 |
20 |
23 |
24 |
27 |
28 |
](https://github.com/aframevr/aframe-boilerplate/archive/master.zip)
16 |
17 | After you have __[downloaded and extracted this `.zip` file](https://github.com/aframevr/aframe-boilerplate/archive/master.zip)__ containing the contents of this repo, open the resulting directory, and you'll be have your scene ready in these few steps:
18 |
19 | npm install && npm start
20 | open http://localhost:3000/
21 |
22 |