Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/threejs_4_deno/src/Three.d.ts>XRWebGLLayer

A simple transformation of three.js for use within a Deno workflow
Go to Latest
class XRWebGLLayer
implements XRWebGLLayer
import { XRWebGLLayer } from "https://deno.land/x/threejs_4_deno@v121/src/Three.d.ts";

Constructors

new
XRWebGLLayer(
session: XRSession,
gl: WebGLRenderingContext | undefined,
options?: XRWebGLLayerInit,
)
interface XRWebGLLayer
implements XRLayer
import { type XRWebGLLayer } from "https://deno.land/x/threejs_4_deno@v121/src/Three.d.ts";

Properties

framebuffer: WebGLFramebuffer
framebufferWidth: number
framebufferHeight: number

Methods

getViewport(view: XRView): XRViewport