Skip to content

Commit

Permalink
Readme p5.xr min version update
Browse files Browse the repository at this point in the history
WebGL2 support and p5.instance.webglVersion check was introduced in
version 1.7.0 https://github.com/processing/p5.js/releases/tag/v1.7.0.
Getting webgl context will fail if in older versions. Example mentioned
in #203 currently fails because of this
  • Loading branch information
TiborUdvari committed Apr 7, 2024
1 parent 69e955f commit e2ea5b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ p5.xr sketches can be run with [p5's online editor.](https://editor.p5js.org/) A
- Do some simple raycasting for gaze-based interaction in both AR and VR

## Getting Started
1. Make sure that you have [the most recent version of p5.js](https://p5js.org/download/).
1. Use the [the most recent version of p5.js](https://p5js.org/download/) or at least version `1.7.0`.
2. Check out the [Device and Browser Support Section](https://stalgiag.github.io/p5.xr/#/quick-start/device-support).
3. Add p5.xr to your project. This can be done most easily by adding the script link to a CDN in the `<head>` of your HTML file underneath the p5 link:
```
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.5.0/p5.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.9.2/p5.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/p5.xr/dist/p5xr.min.js"></script>
```
4. Change the `createCanvas()` call in your p5 WEBGL sketch to `createVRCanvas()` and put it in `preload()` -or-
Expand Down

0 comments on commit e2ea5b3

Please sign in to comment.