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

x/threejs_4_deno/src/renderers/WebGLRenderer.js>WebGLRendererParameters

A simple transformation of three.js for use within a Deno workflow
Go to Latest
interface WebGLRendererParameters
import { type WebGLRendererParameters } from "https://deno.land/x/threejs_4_deno@v121/src/renderers/WebGLRenderer.js";

Properties

optional
canvas: HTMLCanvasElement | OffscreenCanvas

A Canvas where the renderer draws its output.

optional
context: WebGLRenderingContext
optional
precision: string

shader precision. Can be "highp", "mediump" or "lowp".

optional
alpha: boolean

default is false.

optional
premultipliedAlpha: boolean

default is true.

optional
antialias: boolean

default is false.

optional
stencil: boolean

default is true.

optional
preserveDrawingBuffer: boolean

default is false.

optional
powerPreference: string

Can be "high-performance", "low-power" or "default"

optional
depth: boolean

default is true.

optional
logarithmicDepthBuffer: boolean

default is false.