Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/remapper/src/deps.ts>three.WebGLRenderer#setViewport

A framework for Beat Saber map scripting.
Go to Latest
method three.WebGLRenderer.prototype.setViewport
Re-export
import { three } from "https://deno.land/x/remapper@2.1.0/src/deps.ts";
const { WebGLRenderer } = three;

Sets the viewport to render from (x, y) to (x + width, y + height). (x, y) is the lower-left corner of the region.

Parameters

x: Vector4 | number
optional
y: number
optional
width: number
optional
height: number