Reference Source

Lens Module

A powerful module that will allow you to attach a camera to your player and use its rich API for some cool effects.

Installation

ES Module

import { Lens } from './lens.mjs';

IIFE (Immediately Invoked Function Expression)

<script src="lens.js"></script>;
// ...
window.LensBundle.Lens;

API

🚧👷🏽🔨 We're hard at work on documentation and examples.
Head on over here to see the docs here until we're done.

Global Dependency

Lens relies on the VYLO variable being globally accessible.