Skip to main content
Module

x/caviar/deps.ts>WebGLRenderingContext#polygonOffset

⚡ Blazing fast, modern, Game Engine powered by WebGPU for Deno and the browser
Latest
method WebGLRenderingContext.prototype.polygonOffset
import { WebGLRenderingContext } from "https://deno.land/x/caviar@2.6.7/deps.ts";

Specifies the scale factors and units to calculate depth values. The offset is added before the depth test is performed and before the value is written into the depth buffer.

Parameters

factor: number
units: number