Skip to main content
Module

x/gluten/mod.ts>WebGLRenderingContext#polygonOffset

OpenGL bindings & WebGL API implementation for Deno.
Go to Latest
method WebGLRenderingContext.prototype.polygonOffset
import { WebGLRenderingContext } from "https://deno.land/x/gluten@0.1.3/mod.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