1.0.4 • Published 2 years ago

p5-first-person-camera v1.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

About The Project

A simple 3D scene

Built With

Getting Started

Prerequisites

Just p5js!

Installation

  1. Add this CDN to a script tag in your index.html file: https://cdn.jsdelivr.net/npm/p5-first-person-camera@1.0.1/FirstPersonCamera.js
  2. In Setup change canvas to WEBGL
    createCanvas(700, 500, WEBGL)
  3. Create a camera variable in Setup
    cam1 = createCamera()
  4. Call the firstPerson function in Draw passing the camera as an argument
    firstPerson(cam1)

Usage

Example Scene

License

Distributed under the MIT License. See LICENSE.txt for more information.

Contact

Ryan Gilmour - @morejpeg - ryanjamesgilmour@gmail.com

Acknowledgments

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago